I am uploading an image into fire-base and trying to get download URL from which i can send that image to the App.
i tried these two methods
path=imageBlob.public_url-
but this URL is not working to send the the image to the app i want the firebase downloadURL which contains alt=media&token=980d472d-1639-470c-94e5-42f0635ce89c
Another method I tried:
storage.child("images/example").getDownloadURL(token) And in this method HOW TO GET THE TOKEN
Here is my code snippet:
storage.child("images/example").getDownloadURL(token)
imagePath = "D:\\Chatbot\\output.png"
imageBlob.upload_from_filename(imagePath)
path=imageBlob.public_url
storage.child("images/example").getDownloadURL(token) in this method it is asking to pass the token but its not the Bearer or User token it is the token which is added in the link of image which we can get in firebase.