0

I have a flutter android application that uses firebase firestore as a backend service. I am stuck on how to save images to the database. Does anyone have an idea on how to store images in firestore?

2
  • Are you sure you want to use Firestore (a document database) for that? When I need to store images, I do so in Storage: firebase.flutter.dev/docs/storage/usage. Also part of Firebase, but more suited for storing binary data. Commented Sep 21, 2021 at 23:28
  • Is the firebase storage suitable for storing documents as well? Commented Sep 24, 2021 at 6:46

1 Answer 1

2

Yes, you can store images or files in general. I guess right now you have used the firebase_core or firebase auth package.

Firebase also has a firebase_storage package which you can use easily to store images

check out this example

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.