VS 2005: webbrowser control displaying image from database

C

Chris

Hi,
There is a webbrowser control in my app. I have also a ms sql database and
images are stored in.
I can display a html document in the webbrowser control. I also can read an
image from the database (I mean I have the image in memory as a byte array or
image object). Is it possible to display such image in html document shown in
the webbrowser??
How to do that?
thx in advance
 
K

Kodali Ranganadh

Hi,
There is a webbrowser control in my app. I have also a ms sql database and
images are stored in.
I can display a html document in the webbrowser control. I also can read an
image from the database (I mean I have the image in memory as a byte array or
image object). Is it possible to display such image in html document shown in
the webbrowser??
How to do that?
thx in advance

Yes it is possible for images which are supported by web-control ie
[ jpeg,gij,bitmap] but it can't give a support for the "tiff" like
images ..

you can do one thing if deployeement system is windows xp and
standalone application .. we can import "xp fax and picture viewer"
control.
or some 3rd party providers like "LEAD tools " provides very good
imaging API.. that we can do all kind of imaging operations like
rotations, navigation [tiff images] and other brightens....... so
many


regards
ranganadh kodali
 
C

Chris

But I still do not know how to do that. How to display an image (as byte
array kept in memory) in webbrowser control
 
K

Kodali Ranganadh

But I still do not know how to do that. How to display an image (as byte
array kept in memory) in webbrowser control

System.IO.File.WriteAllBytes("d:\\temp.jpg",bytearray);
webBrowser1.Navigate("d:\\xhome.JPG");

That's enoff ..


regards
ranganadh
 
K

Kodali Ranganadh

But I still do not know how to do that. How to display an image (as byte
array kept in memory) in webbrowser control

system.io.file.writeallbytes ("d\\temp.JPG",Bytearry);
webBrowser1.Navigate("d:\\temp.JPG");
 
C

Chris

Sorry, I didnt write it: I dont want to save image to a file (because of the
security policy).
Is it possible to run server side JS or VB scripts in webbrowser control? I
thought about creating and displaying html document in webbrowser control.
The html document whould contain asp 1.1 scripts.
 

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