We are developing web application using mongodb and scala. We want to store Images uploaded by users. We have two options
Storing Image directly in mongodb database using GridFS.
Storing Images in folder on server.And store only path of that image in database.
Which is best approach so that time required to download the image is less?