• Post Reply Bookmark Topic Watch Topic
  • New Topic

image repository in DB

 
Nitin Raodeo
Greenhorn
Posts: 21
  • 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
Sheriff
Posts: 36032
432
Eclipse IDE Java VI Editor
  • 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!