Stream HELP URGENT...

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Does anyone know how to send an IO stream to the browser? Preferably in a
new window.

Thanks in Advance.
 
Hi Chris,

Can you explain something more, because normaly you can not sent things to a
browser, a browser gets things (and there is interaction but always the
browser start with a question to get something)

Cor
 
I am using an embedded resource(".aspx or .HTM") which is then extracted from the for the Assembly like I have shown below.

stream = assem.GetManifestResourceStream(resourceName)

This stream I want to output to the browser in a open new window call generated from the code behind.

Any help would be greatly appreciated.
 
Wait... are you running this from ASP.NET or a WinForms application? I don't think you understand ASP.NET/Streams.

For example, you won't be able to write an aspx stream out because it has nothing to process against (the ASP.NET ISAPI isn't invoked, because your not on a server, HTML is client side rendered so that will work fine.. but not with streams)

But you can't do this client side. If your running this within ASP.NET you could use the Response.Write (which IS a stream to the browser from the server). but that again, would be diffucult to perform with an aspx page.

HTH,
CJ
I am using an embedded resource(".aspx or .HTM") which is then extracted from the for the Assembly like I have shown below.

stream = assem.GetManifestResourceStream(resourceName)

This stream I want to output to the browser in a open new window call generated from the code behind.

Any help would be greatly appreciated.
 
Hi Chris,

In addition to CJ, however you can do a response.write from a bytearray (an image) with an own url and take that as a provider for a control from a webpage.

Cor
 
Back
Top