Mongodb - save image as bytes or as files I'm developing a website which allows the user to upload an image per item. I guess there will be hundreds per user.

What is more preferred? 

Save the images:


as bytes in the DB (mongodb) 
as files in the server


I don`t really know where to place this question in the "Stack Exchange" forums.
MongoDB will happily store binary data such as files, using its GridFS system. That way you can keep the images and other user data together in one place, which is an advantage over storing the images on the file server.