VS 2005: webbrowser control displaying image from database

  • Thread starter Thread starter Chris
  • Start date Start date
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
 
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
 
But I still do not know how to do that. How to display an image (as byte
array kept in memory) in webbrowser control
 
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
 
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");
 
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.
 
Back
Top