Skip to content
Advertisement

How to update the the bitmap image inside the FirebaseStorage in android without changing its downloadUrl in the realtimedatabase

I want to update the bitmap image inside the URL without changing its download URL in the real-time database because at uploading for the first time I have uploaded the image in the storage and stored it URL in the real time database now I want to update that image how should I approach this ??

JavaScript

above written code was the activity that I used to update the image bitmap

Advertisement

Answer

It’s not possible. Each version of a file uploaded to storage has a unique URL. If the object in storage is changed by uploading a new version, then it will require a new URL (with a new token) to get the latest version.

See also: Firebase Storage – Download URL different from actual Download URL in the console (token differs)

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement