Microsoft Web Browser & binarywriter

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
 
H

Herfried K. Wagner [MVP]

* =?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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top