【发布时间】:2017-12-18 12:58:01
【问题描述】:
我对 Firebase 文档有点困惑:https://firebase.google.com/docs/storage/android/download-files
我正在尝试通过文件的 URL 从 Firebase 下载文件,然后获取其本地路径:
mStorageReference.getFile(downloadURL).addOnSuccessListener(new
OnSuccessListener<FileDownloadTask.TaskSnapshot>() {
@Override
public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {
// I assume the file is now downloaded from the given URL and is on the device
// HOW DO I GET THE PATH TO THE FILE ON THE DEVICE ?
}
});
问题在 cmets 中。
【问题讨论】:
-
你能告诉我为什么我的文件名一旦下载就会改变,即从文件名变为文件名-13557732.pdf ....?
标签: android firebase firebase-storage