Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image repository in DB

 
Nitin Raodeo
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the pro and cons of storing the images in DB as compared to storing on File system of the server?
Consider a medium size internet application , with 500 concurrent users requesting for products with images.

Image sizes could vary from 10 KB to 200 KB.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitin,
I would store those in the file system. If you have a web server, store them there. If not, store them on the application server.

If the users are reasonably likely to be accessing the images, you want them to link to the images. If the users could somehow search by image (by bytes or something), there would be an advantage to keeping them in the database. Another reason to keep images in a database is if they change often.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic