Web Image Control Question

  • Thread starter Thread starter G Dean Blake
  • Start date Start date
G

G Dean Blake

I have a Bitmap (system.drawing.bitmap) in a varaible that was just
retreived from a database blob field. I have my aspx page with an image
control on it. It appears, having those two things, there is no direct way
in which I can load my bitmap into my image control.

is there?

It appears that the only way to get a bitmap into the image control is by
using the ImageURL which means I will either have to reference another page
that will have to re-retrieve it from the database or write it to a file on
the server as a .jpg and reference it that way.

Any way to just do t his in memory?

Thanks,
G
 
I read your article. I'm already getting the image from another aspx page.
The problem is that I have to read the image from the database in my main
aspx page in order to get the aspect ratio to then adjust the image control.
so I have to read the image twice from the database - or use session memory.
Gary
 
Back
Top