I'm trying to figure out how to store pictures for a group chat in flutter and Firestore. I tried using Firebase storage but I'd have to create a separate storage place for each group. Maybe you have a way to store it somewhere. I also need to show it on the homepage of the user.
Asked
Active
Viewed 312 times
0
-
Nope, you don't need to create separate storage for each group. – Mises Jan 06 '23 at 03:11
-
then how do I display the image in the group chat? – Jan 06 '23 at 03:15
-
Magic. Same as you store all groups data in Firestore. You literally can have there terabytes of images, and you can sort them, kinda like in Firestore. – Mises Jan 06 '23 at 03:20
-
What i achive this before is upload images to Storage then get the downloadURL, Then save downloadURL to firestore. – flutroid Jan 06 '23 at 06:06
-
Well I did using base64 strings in the document then you convert that base64 String to a file and that is, it all worked! – Wilson Toribio Jan 06 '23 at 12:07
-
@Loading,Let me know if the below recommendations were helpful. – Vaidehi Jamankar Jan 16 '23 at 08:01
-
I just edited the way it would be saved in the database by adding the group name – Jan 16 '23 at 20:25
1 Answers
0
The chat page allows you to send images. The sent images can be uploaded/stored on the Firebase storage.Also after hosting these images the paths from the device's local storage can be fetched using image_picker and then finally display these images.
Also check the following examples for similar implementations:

Vaidehi Jamankar
- 1,232
- 1
- 2
- 10