How do I display byte[ ] image on webform??
-
Hi all Need some advice. I have a byte array that contains my image taken from a database. I need to put this byte array into some control on a webform to display the image. I have tried using the Response.BinaryWrite() but that clears my webform and places the image in the top-left corner. How do I display this image in a certain position on my webform?? Thanks.
-
Hi all Need some advice. I have a byte array that contains my image taken from a database. I need to put this byte array into some control on a webform to display the image. I have tried using the Response.BinaryWrite() but that clears my webform and places the image in the top-left corner. How do I display this image in a certain position on my webform?? Thanks.
You can't stream the image out within the same webform, as the browser has to make a seperate request for the image bytes after it has received the html of the web page. There are some good articles already on caching images and creating a http handler to output image data.
-
You can't stream the image out within the same webform, as the browser has to make a seperate request for the image bytes after it has received the html of the web page. There are some good articles already on caching images and creating a http handler to output image data.
Thanks chris. Would you have any links for these articles?? Sorry asp.net beginner here.
-
Thanks chris. Would you have any links for these articles?? Sorry asp.net beginner here.
You might start with: http://www.codeproject.com/aspnet/aspnet_web_graphics.asp[^] Rocky <>< www.HintsAndTips.com www.MyQuickPoll.com - 2004 Election poll is #33 www.GotTheAnswerToSpam.com