taskSnapshot.getDownloadUrl() method not working

后端 未结 23 761
有刺的猬
有刺的猬 2020-12-08 08:03
private void uploadImageToFirebaseStorage() {
    StorageReference profileImageRef =
        FirebaseStorage.getInstance().getReference(\"profilepics/\" + System.cur         


        
23条回答
  •  醉梦人生
    2020-12-08 08:39

    For Java Code

    String downloadUrl = taskSnapshot.getMetadata().getReference().getDownloadUrl().toString();
    

    For Kotlin

    val downloadUrl = taskSnapshot.getMetadata()?.getReference()?.getDownloadUrl()?.toString()
    

提交回复
热议问题