Mongodb - save image as bytes or as files
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.