Click to See Complete Forum and Search --> : How to retrieve an Image from database and place it in Image WebControl


talal
August 20th, 2004, 03:19 PM
Hi all,

I have a database table contaning a field of type Image which contains an image that the user has uploaded to the server. I also have fields like image length and file type. Now, on the wb page, I have a WebControl of type Image and I was wondering if there is a way to retrieve the image from the database and put it in this Image webcontrol. I managed to retrieve the image and display it on a page on its own using the following code:

Response.OutputStream.Write(attributes.getPicture(),0,attributes.getPictureLength());

but this is not what I want, I need to include the image in an already available aspx page. could anyone give me any hints on how to do such a thing?

thanks,
Talal

MRutledge
August 21st, 2004, 03:41 PM
take a look at this link:
http://www.codeproject.com/cs/database/albumviewer.asp?df=100&forumid=3653&exp=0&select=851347