title: Storing image in DB vs filesystem for user uploaded images in website
body: <p>I am building a website where users will be allowed to upload images . There is also restriction on maximum amount of space each user can use .</p>
  
  <p>I have two ideas in mind .</p>
  
  <ol>
  <li>To store image in a NoSQL db like mongoDB using GridFS .</li>
  <li>To store the image in File system and have a path stored in DB .</li>
  </ol>
  
  <p>Which among the above is better? and Why? </p>