Click here to Skip to main content
15,907,395 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,i am working with sqlserver2008. I want to display an image in the GridView column. For this i stored the image in Images folder of my app solution explorer. I dont know how to give the address of this image in the db table and also how to map this image to a control which is present in column of a gridview. Can anyone give an idea how to work with image in sqlserver2008.
Posted
Updated 31-Jul-11 20:38pm
v2

Usually "address of the image" means the address of the instance of the image (such as bitmap) in memory. This address is not a persistent entity, so storing it in a database would be quite useless. Normally you need to store image data itself using image type.

If you mean something completely different, such as image URL or something like that, use "Improve question" above and… watch you language.

—SA
 
Share this answer
 
hey! Raj this Store or save images in SQL Server database using C#[^] article using Image path to get and set Image from Database. it might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900