Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I need a help.i am developing product details project.so i am insert and retrieve product images from sql server database.i don't know this concept.

please help me

Posted

After you loading the image from file, you have to convert it to bytes array, then save the result into a "image" filed in your SQL table. To load the image from DB you should do in the reverse way.
 
Share this answer
 
Comments
jeevakumar.T 18-Feb-14 9:19am    
friend i am beginner of dot net developer.so please help me.i don't that coding .
Another way, which I prefer, is to just store the path to the image in the database and have the images somewhere on your IIS server.
 
Share this answer
 
Please read this thread as your reference for basic save and retrieve of images in database. . . .
hope it will help. .
 
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