StorageException has occurred. Object does not exist at location. Storage FireBase

前端 未结 6 665
孤独总比滥情好
孤独总比滥情好 2020-12-11 16:19

I want display image in imageView, that\'s what I\'m doing: I\'m using FirebaseUI to display images from FireBase Storage.

FirebaseStorage storageDisplayImg;         


        
6条回答
  •  不知归路
    2020-12-11 16:56

    In my case, I am saving the complete URL in the Firebase database and get it like this: gs: //your-id.appspot.com/images/cross.png

    When I do this:

    StorageReference ref = FirebaseStorage().Ref().Child(urlImag);
          url = (await ref.getDownloadURL()).toString();
    

    I am doing the following:

    StorageReference ref = FirebaseStorage (gs://your-id.appspot.com/images/cross.png).ref().child ();
          url = (await ref.getDownloadURL()).toString();
    

    This step is not necessary if you already have the full URL saved in your field.

提交回复
热议问题