getDownloadUrl deprecated, so How do i get access to the URL of the image i uploaded onto the Firebase...
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.
android firebase android-studio firebase-realtime-database
marked as duplicate by Alex Mamo
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.
add a comment |
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.
android firebase android-studio firebase-realtime-database
marked as duplicate by Alex Mamo
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 isgetDownlaodUrl()
?, 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
add a comment |
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.
android firebase android-studio firebase-realtime-database
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
android firebase android-studio firebase-realtime-database
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
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
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 isgetDownlaodUrl()
?, 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
add a comment |
2
is this a typo while posting question or you are using as it isgetDownlaodUrl()
?, 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
add a comment |
2 Answers
2
active
oldest
votes
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
}
});
add a comment |
Instead of mStorage object name just use this
downloadUrl = taskSnapshot.getDownloadUrl().toString();
This doesn't work. Already tried.
– varun sonava
Dec 26 '18 at 4:42
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
}
});
add a comment |
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
}
});
add a comment |
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
}
});
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
}
});
answered Nov 16 '18 at 11:55
Karan MerKaran Mer
5,66632966
5,66632966
add a comment |
add a comment |
Instead of mStorage object name just use this
downloadUrl = taskSnapshot.getDownloadUrl().toString();
This doesn't work. Already tried.
– varun sonava
Dec 26 '18 at 4:42
add a comment |
Instead of mStorage object name just use this
downloadUrl = taskSnapshot.getDownloadUrl().toString();
This doesn't work. Already tried.
– varun sonava
Dec 26 '18 at 4:42
add a comment |
Instead of mStorage object name just use this
downloadUrl = taskSnapshot.getDownloadUrl().toString();
Instead of mStorage object name just use this
downloadUrl = taskSnapshot.getDownloadUrl().toString();
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
add a comment |
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
add a comment |
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