Image from SQL to new Image or Placeholder

  • Thread starter Thread starter Brian K. Williams
  • Start date Start date
B

Brian K. Williams

I am looking for a way to read an Image from SQL directly to a new Image or
Placeholder. I have not been able to find any examples other than
Response.OutputStream.Write or similar.

Thanks for any help
Brian K. Williams
 
You will not be able to accomplish this witht he current versions of
ASP.NET.

What you can do is create a .aspx that uses the OutputStream.Write method to
output an image, then put
something like:
<img src="myimagedownloader.aspx?id=4"/>
into your placeholder.

I have heard rumors that the next version of ASP.NET shipping with "Whidbey"
will have an image control that will take a System.Drawing.Image or Stream
and render the image without having to resort to this extra page.
 
Back
Top