I want to download image on firebase
storage in android app.
this is my image
I try this but it is not working
storageR
Try this
// Create a storage reference from our app
StorageReference storageRef = storage.getReferenceFromUrl("gs://");
// Create a reference with an initial file path and name
StorageReference pathReference = storageRef.child("users/me/yourpics.png");
storageRef.child("users/me/yourpics.png").getDownloadUrl().addOnSuccessListener(new OnSuccessListener() {
@Override
public void onSuccess(Uri uri) {
// Got the download URL for 'users/me/profile.png'
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
// Handle any errors
}
});
Download-files
https://firebase.google.com/docs/storage/android/download-files