Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What datatype should be used to store images in database? Or
Store only the path using varchar datatype and place images in specific folder.
I am very confuse for storeing image.
please help me out.
Posted

1 solution

 
Share this answer
 
Comments
Ankur\m/ 20-Jun-11 1:09am    
Good link.
And about your suggestion - most of the times file system will be the option, but it really depends on lot of factors. There are lot of discussion about the same on the web. One such here - http://brian.moonspot.net/2007/10/19/putting-files-into-a-database/
My 4!
thatraja 20-Jun-11 1:17am    
/*but it really depends on lot of factor*/
Of course Agree, it's true fact for all things.

But based on personal experience I prefer file system which is easy to handle. Also storing files db increases the db file size & it makes slow to handle(I have worked in one project - storing images in db) & faced some issues at that time.
BTW Thank you man.
Ankur\m/ 20-Jun-11 1:36am    
I would store "sensitive" and small files in db. :)
thatraja 20-Jun-11 1:38am    
But requirement may be change soon like large files ;-)
Ankur\m/ 20-Jun-11 1:40am    
And so I mentioned - "it depends on lot of factors".

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