Image storage in mongodb

Asked

Viewed 456 times

0

I’m developing a mobile app in React where there will be several profiles, with up to 5 photos each. Our api is currently in aspnet core 2.0 and we use mongodb as a database. My question is this, what is the best way to accomplish this implementation considering that these photos will be shown practically every time a user’s profile is uploaded? Thanks for your help.

  • You can save BLOB on Mongodb?

  • can save data in binary yes

  • Any problem saving only the image address in string form?

  • It is not advisable to store images in BD. Especially if you will have great access. Look more on the subject as it has enough content on it.

  • Create a folder with file indexing, after the creation of the folder upload the files to it and just save the photo path in the database. A much simpler and more economical way.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.