I am new to MongoDB and I have a question around storing image files in Mongo.
I have read and I understand that there are 3 different ways to store the file:
Inline: Basically inbed the picture in the actual document… (I know I need to be mindful of the 16M size limit for the document)
Reference: This would entail storing a Reference URL instead of the actual file (At least that is my understanding).
While I am familiar with the second two methods, I am not at all familiar with the GridFS method.
Here is what I need to do… I am designing an online e-commerce website that will sell products… I initially wanted to include a photo gallery of up to 3 to 5 images of the product. Because of this, I am concerned with using the inline method and I lean toward the reference method. I just wanted to check and see if I am on the right track.
If Reference is the most optimal method, is there any recommendations on what storage to use with the URL? I am developing on Azure.