Friday, June 1, 2012

Better way to store images in DB or as a file ina folder?


Storing Image in a folder and using URL or relative path in the database is the way I would recommend. They are having many advantages and here are some of them.


  • Normally sql server space is more expensive than ordinary disk space in hosting environment.
  • You can name images in a Search Engine optimized way
  • Essay to manage, backup and restore images and database.
  • More suitable for static pages, (if you optimize some pages for performance).

No comments:

Post a Comment