odubhgaill
asked on
ASP.NET - displaying image from database in gridview
Hi,
I am storing images in a database and want to display them in a gridview. It appears that the Imagefield in the gridview will not directly display image data from the database.
What is the best way to display the images in the gridview?
Rob
I am storing images in a database and want to display them in a gridview. It appears that the Imagefield in the gridview will not directly display image data from the database.
What is the best way to display the images in the gridview?
Rob
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
- in the ItemDataBound, take the image data from the datasource, load it into a Bitmap object, if necessary, and save it in a file on the server.
- bind the image url to the saved file.