I am trying to load an image from Firebase Storage using Glide but I am getting an error .
package com.kanishq.wallpaper;
import android.os.Bundle;
import an
Try this way:
storageReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener() {
@Override
public void onSuccess(Uri uri) {
imageURL = uri.toString();
Glide.with(getApplicationContext()).load(imageURL).into(i1);
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
// Handle any errors
}
});
So this way, you get a URL to the image in the storage and you load that URL into the glide