I am developing an app where user will upload multiple images along with some other data like name address etc.
I am using MEAN stack for development, So I have some questions regarding this:
How should I store image data in my db, like what information should I save in my db ?
I have read that we can use GridFS by mongodb. But my images would be of max 5MB in size. So what should I use simple fs by node or gridfs by mongodb ?
What is the need of storing file data on amazon s3, can't I just save base64 string into my database ?
I have googled more and found out that storing images on storage is more beneficial than storing them directly into db. So I think I will go with s3, but then how can I refer to the images stored in s3 from the db ?
my app consist of 200 users and each user can upload upto 5 images and upto 5mb of size, and yes it is performance critical also.