June 2018
Beginner to intermediate
394 pages
9h 2m
English
The next approach is to download the content from a URL using the getDownloadUrl() method on the storage reference instance to download the content. If the architecture or download infrastructure of the application is based on URLs, we can continue the same technique using Firebase. The getDownloadUrl() method returns a downloadable URL for the files:
storageRef.child("users/me/rafael.png").getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() { @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 }});
All three methods ...
Read now
Unlock full access