Click here to Skip to main content
14,668,708 members
Rate this:
Please Sign up or sign in to vote.
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..

Rate this:
Please Sign up or sign in to vote.

Solution 1

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
   
Rate this:
Please Sign up or sign in to vote.

Solution 4

Hi...
See this link.
Save image in local Folder from sql database[^]
Thank u.
   
Rate this:
Please Sign up or sign in to vote.

Solution 5

The best practice is to store Image file in Folder itself and the path for the Image to store in the database.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100