I am having trouble locating any examples of how to output an image to an html page that is originally sourced from a blob column of an sql data table. I cannot directly display the image as I have to remove the first 4 characters from the stream before the
image data starts. In the past with other languages I have written this image stream out to file and passed the imageurl to the page. This worked ok but it left me with the maintenance task of cleaning these temp image directories at a later date. Is there
a way I can bind a stream of bytes directly to an image control and have that control deal with sending it to the browser or am I doomed to work with image temp directories? any help greatly appreciated rgds Mike!
I remember reading somewhere about an interesting solution to this problem. Unfortunately, I don't remember all of the details, but it involved setting the src attribute on an image control to an .aspx page. The .aspx page outputs the binary stream. I haven't
tried this, but it sounds interesting.
mcdeath
Member
141 Points
32 Posts
Displaying a database image on a web page?
Jan 29, 2004 01:35 PM|LINK
NetProfit
Contributor
6278 Points
1252 Posts
Re: Displaying a database image on a web page?
Jan 29, 2004 01:44 PM|LINK
NetProfit
Contributor
6278 Points
1252 Posts
Re: Displaying a database image on a web page?
Jan 29, 2004 01:49 PM|LINK