【发布时间】:2021-03-27 23:02:33
【问题描述】:
使用 手机摄像头 可以使用 photoIntent 捕获图像,然后上传捕获的图像成功,我可以观察 Firebase 存储中捕获的图像 但我无法从 Firebase 存储 加载图片,我只能查看占位符,但 从图库中发布的图片 已加载到图片视图并且 可见。 photoIntent 和我使用 Picasso 库 从 Firebase 存储 呈现这些图像可能是什么问题?任何帮助,将不胜感激 附加的方法从 Firebase 实时数据库 接收图像 url,并且应该在图像视图中加载图像
` private void assignDetails(String d_name, String d_phone, String d_image, String d_email, String d_location, String d_price, String d_capacity) {
tv_name.setText(d_name);
tv_phone.setText(d_phone);
tv_email.setText(d_email);
tv_location.setText(d_location);
tv_price.setText(d_price);
tv_capacity.setText(d_capacity);
Picasso.with(getApplicationContext).load(d_image)
.placeholder(R.drawable.back_image)
.fit()
.centerCrop()
.into(detail_image);
}`
【问题讨论】:
-
请分享您的代码,以便其他人查看。使用代码 sn -p 没有人可以提供帮助。
标签: android firebase-storage picasso