[英]How to store images for flutter in a database?
I'm trying to figure out how to store pictures for a group chat in flutter and Firestore.我想弄清楚如何在 flutter 和 Firestore 中存储用于群聊的图片。 I tried using Firebase storage but I'd have to create a separate storage place for each group.
我尝试使用 Firebase 存储,但我必须为每个组创建一个单独的存储位置。 Maybe you have a way to store it somewhere.
也许你有办法将它存储在某个地方。 I also need to show it on the homepage of the user.
我还需要在用户的主页上显示它。
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.
发送的图像可以上传/存储在 Firebase 存储上。此外,在托管这些图像后,可以使用image_picker从设备的本地存储中获取路径,然后最终显示这些图像。
Also check the following examples for similar implementations:还要检查以下示例以了解类似的实现:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.