【发布时间】:2018-05-10 10:52:07
【问题描述】:
如何获取我以字符串形式存储在 Firebase 存储中的图像的下载 URL?
我曾尝试使用 Firebase 文档中的代码,但我不知道如何将其作为字符串获取。谢谢。
storageRef.child("users/me/profile.png").getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
// Got the download URL for 'users/me/profile.png'
}}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
// Handle any errors
}});
【问题讨论】:
标签: java android firebase firebase-storage