getDownloadUrl deprecated, so How do i get access to the URL of the image i uploaded onto the Firebase...












0
















This question already has an answer here:




  • How to get offline uploaded file Download url in Firebase

    1 answer




CLICK TO SEE THE ACTIVITY WHERE THE DOWNLOAD URL OF THE IMAGE UPLOADED TO THE FIREBASE STORAGE IS REQUIRED.
I Want to get the Download URL of the uploaded image. getDownlaodUrl() is not working as it has been deprecated lately.So I want the alternate of that, so that I can use that url to display the image which i uploaded on the firebase storage in another activity using Picasso.
So kindly tell me how to Retrieve the download URL of the images on the Firebase Storage.










share|improve this question















marked as duplicate by Alex Mamo android
Users with the  android badge can single-handedly close android questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 16 '18 at 12:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 2





    is this a typo while posting question or you are using as it is getDownlaodUrl() ?, because function is there in documentation. firebase.google.com/docs/reference/android/com/google/firebase/…

    – Karan Mer
    Nov 16 '18 at 10:59













  • It is not a typo. I used mStorage.getDownloadUrl().toString(); This gave an error , Required : String ; Found : Task<uri>

    – varun sonava
    Nov 16 '18 at 11:50
















0
















This question already has an answer here:




  • How to get offline uploaded file Download url in Firebase

    1 answer




CLICK TO SEE THE ACTIVITY WHERE THE DOWNLOAD URL OF THE IMAGE UPLOADED TO THE FIREBASE STORAGE IS REQUIRED.
I Want to get the Download URL of the uploaded image. getDownlaodUrl() is not working as it has been deprecated lately.So I want the alternate of that, so that I can use that url to display the image which i uploaded on the firebase storage in another activity using Picasso.
So kindly tell me how to Retrieve the download URL of the images on the Firebase Storage.










share|improve this question















marked as duplicate by Alex Mamo android
Users with the  android badge can single-handedly close android questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 16 '18 at 12:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 2





    is this a typo while posting question or you are using as it is getDownlaodUrl() ?, because function is there in documentation. firebase.google.com/docs/reference/android/com/google/firebase/…

    – Karan Mer
    Nov 16 '18 at 10:59













  • It is not a typo. I used mStorage.getDownloadUrl().toString(); This gave an error , Required : String ; Found : Task<uri>

    – varun sonava
    Nov 16 '18 at 11:50














0












0








0









This question already has an answer here:




  • How to get offline uploaded file Download url in Firebase

    1 answer




CLICK TO SEE THE ACTIVITY WHERE THE DOWNLOAD URL OF THE IMAGE UPLOADED TO THE FIREBASE STORAGE IS REQUIRED.
I Want to get the Download URL of the uploaded image. getDownlaodUrl() is not working as it has been deprecated lately.So I want the alternate of that, so that I can use that url to display the image which i uploaded on the firebase storage in another activity using Picasso.
So kindly tell me how to Retrieve the download URL of the images on the Firebase Storage.










share|improve this question

















This question already has an answer here:




  • How to get offline uploaded file Download url in Firebase

    1 answer




CLICK TO SEE THE ACTIVITY WHERE THE DOWNLOAD URL OF THE IMAGE UPLOADED TO THE FIREBASE STORAGE IS REQUIRED.
I Want to get the Download URL of the uploaded image. getDownlaodUrl() is not working as it has been deprecated lately.So I want the alternate of that, so that I can use that url to display the image which i uploaded on the firebase storage in another activity using Picasso.
So kindly tell me how to Retrieve the download URL of the images on the Firebase Storage.





This question already has an answer here:




  • How to get offline uploaded file Download url in Firebase

    1 answer








android firebase android-studio firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 11:00







varun sonava

















asked Nov 16 '18 at 10:55









varun sonavavarun sonava

103




103




marked as duplicate by Alex Mamo android
Users with the  android badge can single-handedly close android questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 16 '18 at 12:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Alex Mamo android
Users with the  android badge can single-handedly close android questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 16 '18 at 12:31


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2





    is this a typo while posting question or you are using as it is getDownlaodUrl() ?, because function is there in documentation. firebase.google.com/docs/reference/android/com/google/firebase/…

    – Karan Mer
    Nov 16 '18 at 10:59













  • It is not a typo. I used mStorage.getDownloadUrl().toString(); This gave an error , Required : String ; Found : Task<uri>

    – varun sonava
    Nov 16 '18 at 11:50














  • 2





    is this a typo while posting question or you are using as it is getDownlaodUrl() ?, because function is there in documentation. firebase.google.com/docs/reference/android/com/google/firebase/…

    – Karan Mer
    Nov 16 '18 at 10:59













  • It is not a typo. I used mStorage.getDownloadUrl().toString(); This gave an error , Required : String ; Found : Task<uri>

    – varun sonava
    Nov 16 '18 at 11:50








2




2





is this a typo while posting question or you are using as it is getDownlaodUrl() ?, because function is there in documentation. firebase.google.com/docs/reference/android/com/google/firebase/…

– Karan Mer
Nov 16 '18 at 10:59







is this a typo while posting question or you are using as it is getDownlaodUrl() ?, because function is there in documentation. firebase.google.com/docs/reference/android/com/google/firebase/…

– Karan Mer
Nov 16 '18 at 10:59















It is not a typo. I used mStorage.getDownloadUrl().toString(); This gave an error , Required : String ; Found : Task<uri>

– varun sonava
Nov 16 '18 at 11:50





It is not a typo. I used mStorage.getDownloadUrl().toString(); This gave an error , Required : String ; Found : Task<uri>

– varun sonava
Nov 16 '18 at 11:50












2 Answers
2






active

oldest

votes


















1














Use getDownloadUri() as below it has changed in recent version, check documentation here https://firebase.google.com/docs/storage/android/download-files#download_data_via_url



getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
System.out.println(uri.toString());
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
// Handle any errors
}
});





share|improve this answer































    0














    Instead of mStorage object name just use this



    downloadUrl = taskSnapshot.getDownloadUrl().toString();






    share|improve this answer


























    • This doesn't work. Already tried.

      – varun sonava
      Dec 26 '18 at 4:42


















    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Use getDownloadUri() as below it has changed in recent version, check documentation here https://firebase.google.com/docs/storage/android/download-files#download_data_via_url



    getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
    @Override
    public void onSuccess(Uri uri) {
    System.out.println(uri.toString());
    }
    }).addOnFailureListener(new OnFailureListener() {
    @Override
    public void onFailure(@NonNull Exception exception) {
    // Handle any errors
    }
    });





    share|improve this answer




























      1














      Use getDownloadUri() as below it has changed in recent version, check documentation here https://firebase.google.com/docs/storage/android/download-files#download_data_via_url



      getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
      @Override
      public void onSuccess(Uri uri) {
      System.out.println(uri.toString());
      }
      }).addOnFailureListener(new OnFailureListener() {
      @Override
      public void onFailure(@NonNull Exception exception) {
      // Handle any errors
      }
      });





      share|improve this answer


























        1












        1








        1







        Use getDownloadUri() as below it has changed in recent version, check documentation here https://firebase.google.com/docs/storage/android/download-files#download_data_via_url



        getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
        @Override
        public void onSuccess(Uri uri) {
        System.out.println(uri.toString());
        }
        }).addOnFailureListener(new OnFailureListener() {
        @Override
        public void onFailure(@NonNull Exception exception) {
        // Handle any errors
        }
        });





        share|improve this answer













        Use getDownloadUri() as below it has changed in recent version, check documentation here https://firebase.google.com/docs/storage/android/download-files#download_data_via_url



        getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
        @Override
        public void onSuccess(Uri uri) {
        System.out.println(uri.toString());
        }
        }).addOnFailureListener(new OnFailureListener() {
        @Override
        public void onFailure(@NonNull Exception exception) {
        // Handle any errors
        }
        });






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 16 '18 at 11:55









        Karan MerKaran Mer

        5,66632966




        5,66632966

























            0














            Instead of mStorage object name just use this



            downloadUrl = taskSnapshot.getDownloadUrl().toString();






            share|improve this answer


























            • This doesn't work. Already tried.

              – varun sonava
              Dec 26 '18 at 4:42
















            0














            Instead of mStorage object name just use this



            downloadUrl = taskSnapshot.getDownloadUrl().toString();






            share|improve this answer


























            • This doesn't work. Already tried.

              – varun sonava
              Dec 26 '18 at 4:42














            0












            0








            0







            Instead of mStorage object name just use this



            downloadUrl = taskSnapshot.getDownloadUrl().toString();






            share|improve this answer















            Instead of mStorage object name just use this



            downloadUrl = taskSnapshot.getDownloadUrl().toString();







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 16 '18 at 12:36

























            answered Nov 16 '18 at 11:31









            TESTTEST

            107




            107













            • This doesn't work. Already tried.

              – varun sonava
              Dec 26 '18 at 4:42



















            • This doesn't work. Already tried.

              – varun sonava
              Dec 26 '18 at 4:42

















            This doesn't work. Already tried.

            – varun sonava
            Dec 26 '18 at 4:42





            This doesn't work. Already tried.

            – varun sonava
            Dec 26 '18 at 4:42



            Popular posts from this blog

            Bressuire

            Vorschmack

            Quarantine