【发布时间】:2019-02-09 23:35:10
【问题描述】:
我正在尝试从 firebase 下载图像。自从他们弃用了 get URI 方法以来,我还没有找到适合我的替代方法。
我已经尝试使用 firebase 上的方法和 stackoverflow 上的多个其他方法,但其他解决方案似乎都没有帮助。
profileImageReference = FirebaseStorage.getInstance().getReference("profile_images");
String imageFile = "QxTTXQYPlaN2nEdel6LPZ5HxbE33.jpeg";
StorageReference profRef = profileImageReference.child(imageFile);
blogImageView = mView.findViewById(R.id.blog_image);
Glide.with(context).load(profRef).into(blogImageView);
据我了解,这个 storagereference 应该指向 profile_images 文件夹,然后获取图像字符串的子项。但它仍然无法在屏幕上更新。我删除了请求选项例外,因为我想看看它是否以某种方式覆盖了下载
【问题讨论】:
标签: android firebase firebase-storage