Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir/Madam,
please give a code for image retrievefrom data base
in my project having 2 folders in First Folder i am creating image handler that folder image display but second folder we user these code for image retrieve but image cannot be display

please give me any idea or code
Posted
Updated 28-Nov-13 19:38pm
v3
Comments
Er Daljeet Singh 29-Nov-13 1:51am    
put your code where you stuck..

Hi..

Better to do like this

1.Store Image in Local Folder like "~/Images/"
2.Store the image reference in Database
3.Retrieve the reference and map to the local folder
 
Share this answer
 
Hi...
See this link.
Save image in local Folder from sql database[^]
Thank u.
 
Share this answer
 
The best practice is to store Image file in Folder itself and the path for the Image to store in the database.
 
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