0

I have a small problem with fetching my image on the Firebase Database Storage. The Database has the reference of that image and it is the reference which gets fetched. How can I can the image using that reference? I have tried both Picasso and Glide to display the image on on the image view , but since it is the reference that gets fetched it won't display the image.

Reference

And this is the log message displayed for this.

Log Messages

Thank you!

Dharmaraj
  • 47,845
  • 8
  • 52
  • 84
Shehan Silva
  • 105
  • 6
  • That's isn't a correct URL. Most likely that's why you have that behavior. Show us your code. – Alex Mamo Sep 25 '21 at 11:18
  • It looks like you're doing `String downloadURL = storageRef.getDownloadURL()` somewhere, which won't work. Getting a storage URL is an asynchronous operation, and you need to attach a completion/success listener to get the result See the documentation [here](https://firebase.google.com/docs/storage/android/download-files#download_data_via_url) and this [answer](https://stackoverflow.com/a/51064689) – Frank van Puffelen Sep 25 '21 at 15:07

0 Answers0