Microsoft Web Browser & binarywriter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a byte array (byte() loaded from an image from a SQL Server database,
this could be a pdf, doc, an image type, etc.) and I have a Microsoft Web
Browser control on my form I want to be able to send the Microsoft Web
Browsercontrol the array of bytes and let it load, now I know how to use the
response.binarywrite to send the bytes and Response.ContentType to set the
type of stream BUT since the Microsoft Web Browser control only has the
Navigate method I'm not sure how to load it? I really would like not to
create a file for then Navigate to it. Is there any other way?

THANKS
 
* =?Utf-8?B?S2VuIEJlYXJk?= said:
I have a byte array (byte() loaded from an image from a SQL Server database,
this could be a pdf, doc, an image type, etc.) and I have a Microsoft Web
Browser control on my form I want to be able to send the Microsoft Web
Browsercontrol the array of bytes and let it load, now I know how to use the
response.binarywrite to send the bytes and Response.ContentType to set the
type of stream BUT since the Microsoft Web Browser control only has the
Navigate method I'm not sure how to load it? I really would like not to
create a file for then Navigate to it. Is there any other way?

You will have to upload the file to a web server (localhost, for
example), and then navigate to the file, or save the file to disk and
navigate to the file.
 
Back
Top