HUGE thanks for this video! Ran into some gradle problems initially but after installing every possible update to Android Studio and stuff listed in the SDK manager, I was able to get Firebase image uploading to work on my drawing app! I also added this extra dependency: "com.google.firebase:firebase-auth:9.0.2". I do want to mention though that right now there's an "error" being printed in the console about lack of authentication, which is irrelevant/incorrect considering in the video we change the storage rule to reflect access for everyone. So even though it is indeed uploading the images, the console will still print out that there is a problem. So initially I thought it was wasn't working, but to my surprise all the images files were actually present in storage! Very cool.
follow this instructions ... is very simple (only 3 lines of code) stackoverflow.com/questions/50467814/tasksnapshot-getdownloadurl-is-deprecated/55440618?fbclid=IwAR28FCecWOVCTz4nW0ZvXDT7V9QKcK9iJrETPVRAfhoY-rfVOXaWkva4Fo4#55440618
Doug: how can I handle multiple upload. I need to send 10 images in a synchronous way (a business requirement), how to solve this if the API does not support anything like this?
imageContainer references a FrameLayout that contains both the ImageView and the TextView as child views. What I'm saving is that container's entire display.
Sorry you had problems with that. You can still get a download URL, you just have to use a different API for that. stackoverflow.com/questions/50660975/firebase-storage-getdownloadurl-method-cant-be-resolved The reason for removing download urls from upload tasks was to optimize the process of uploading a file. It was extra overhead to generate a download url when it's not even certain if one is needed for an upload (not all uploads will need a download URL).
But still, most will need it. And we don't need all data that we get in most of the post api. But here the download url was needed so dearly for 99% developers. My suggestions would be to reconsider in next release. Thank you. I am sure many other would concur with me.
hey there, Sam here. How do i upload/download an image into FirebaseStorage so that only the signed in UID can access their own images. Do I add a photoUrl field inside the .collection.document.field('photoUrl') and does any have the code for that? thanks
does the google play services version need to map up with that in mobile for example , im using 11.0.1 in my dependencies , so mobile should also have that version of play services ? do some mobiles have lower version of play services or do all have the same ?
The Display URL isnt seeming to be directly clickable and redirecting to a browser to view the Image file. It is rather coming up as a plain unresponsive text! How to make it the way it is responding in this given video? ✌
In the firebase console, you have to click the download URL to copy it to the clipboard, then you can paste that into another browser tab to view the content. The link in the app running in the emulator was clickable because I made the TextView recognize URLs to make them clickable.
Hey Doug nice video. I'm currently trying firebase for my simple app. In my app I'm using realtime database for information like name and address but I what I want to do now is to add image to that information. Do I need to use firebase storage and realtime database for that?
It's best to keep your data in Database and images in Storage. They can be stored in similarly structured paths to keep things easy to remember. So if you were using a path like /users/${uid} where uid is the user id from Firebase Authentication, you could use the same path in Firebase Storage to store any images associated with that account. Also, in some cases, you might want to store paths of files in Storage at a location in Database to make them easy to find later.
Doug Stevenson Thanks for the reply man I will do it right away. Firebase is really great for beginners in Android programming just like me. God bless and may the force be with you 😊 always.
What if there is no internet connection and the image is really important in your app, you would not be able to see it because it can't be downloaded or Firebase storage can also work offline? I can think of some ways to counter this scenario but I just wanted to know if Firebase storage does it for you :P.
"code": 400, "message": "Permission denied. Could not access bucket lustrous-oasis-275506.appspot.com. Please enable Firebase Storage for your bucket by visiting the Storage tab in the Firebase Console and ensure that you have sufficient permission to properly provision resources.", "status": "ACCESS_BUCKET" } sir i was enter a link n this happened how to solve (sry for my english)
3:36 shouldn't the filename generation normally be done on the server side to prevent theoretically duplicates/ensure uniqueness? But that's not possible with just using Firebase Storage I guess, because we need explicit logic/code to do that? E: What do you think of this approach to let the Firebase Database generate a unique ID for the metadata entry and use this ID for the file (upload the file after creating a DB entry)?: stackoverflow.com/a/39369630 E2: use this for the new Firebase Firestore: firebase.google.com/docs/firestore/manage-data/add-data#add_a_document Add the returned path of the renamed and uploaded file (to the Firebase Storage) to a new metadata document in the Firebase Firestore. Is this the right way?
I believe a UUID is just a random set of hex numbers that is statistically near impossible to be repeated, so the client can create it and upload it to the server just fine.
HUGE thanks for this video!
Ran into some gradle problems initially but after installing every possible update to Android Studio and stuff listed in the SDK manager, I was able to get Firebase image uploading to work on my drawing app!
I also added this extra dependency: "com.google.firebase:firebase-auth:9.0.2".
I do want to mention though that right now there's an "error" being printed in the console about lack of authentication, which is irrelevant/incorrect considering in the video we change the storage rule to reflect access for everyone. So even though it is indeed uploading the images, the console will still print out that there is a problem. So initially I thought it was wasn't working, but to my surprise all the images files were actually present in storage! Very cool.
getDownloadUrl() is Deprecated. Any idea how to solve this ?! Thanks in advance
follow this instructions ... is very simple (only 3 lines of code) stackoverflow.com/questions/50467814/tasksnapshot-getdownloadurl-is-deprecated/55440618?fbclid=IwAR28FCecWOVCTz4nW0ZvXDT7V9QKcK9iJrETPVRAfhoY-rfVOXaWkva4Fo4#55440618
when I open my storage there is no download url only token code - why is that?
Doug: how can I handle multiple upload. I need to send 10 images in a synchronous way (a business requirement), how to solve this if the API does not support anything like this?
Could you explain how the upload image contains the overlayed text? I've added a TextView that overlays my ImageView, but doesn't save after upload.
imageContainer references a FrameLayout that contains both the ImageView and the TextView as child views. What I'm saving is that container's entire display.
Doug Stevenson 😮interesting! I'll give this a try, thanks! 👍
Firebase docs are very difficult.. a lot of developers prefer clear tutorials
Uploading a file no longer sends the download url. It is really frustrating a change. Really surprised that such a feature has been taken off.
Sorry you had problems with that. You can still get a download URL, you just have to use a different API for that.
stackoverflow.com/questions/50660975/firebase-storage-getdownloadurl-method-cant-be-resolved
The reason for removing download urls from upload tasks was to optimize the process of uploading a file. It was extra overhead to generate a download url when it's not even certain if one is needed for an upload (not all uploads will need a download URL).
But still, most will need it. And we don't need all data that we get in most of the post api. But here the download url was needed so dearly for 99% developers. My suggestions would be to reconsider in next release. Thank you. I am sure many other would concur with me.
You can always file a feature request. firebase.google.com/support/contact/bugs-features/
ı can't see any videos about explain clearly storage rules .
Thank you so much Mr Doug! very nice cource
Great Video! So helpful!
hey there, Sam here. How do i upload/download an image into FirebaseStorage so that only the signed in UID can access their own images.
Do I add a photoUrl field inside the .collection.document.field('photoUrl') and does any have the code for that?
thanks
Hello. How can I get the image from storage use in android application?
does the google play services version need to map up with that in mobile for example , im using 11.0.1 in my dependencies , so mobile should also have that version of play services ? do some mobiles have lower version of play services or do all have the same ?
Is firebase storage is unabale now?? my app cant upload file!
The Display URL isnt seeming to be directly clickable and redirecting to a browser to view the Image file.
It is rather coming up as a plain unresponsive text!
How to make it the way it is responding in this given video? ✌
In the firebase console, you have to click the download URL to copy it to the clipboard, then you can paste that into another browser tab to view the content. The link in the app running in the emulator was clickable because I made the TextView recognize URLs to make them clickable.
Doug Stevenson Thank you! :)
Hey Doug nice video. I'm currently trying firebase for my simple app. In my app I'm using realtime database for information like name and address but I what I want to do now is to add image to that information. Do I need to use firebase storage and realtime database for that?
It's best to keep your data in Database and images in Storage. They can be stored in similarly structured paths to keep things easy to remember. So if you were using a path like /users/${uid} where uid is the user id from Firebase Authentication, you could use the same path in Firebase Storage to store any images associated with that account.
Also, in some cases, you might want to store paths of files in Storage at a location in Database to make them easy to find later.
Doug Stevenson Thanks for the reply man I will do it right away. Firebase is really great for beginners in Android programming just like me. God bless and may the force be with you 😊 always.
What if there is no internet connection and the image is really important in your app, you would not be able to see it because it can't be downloaded or Firebase storage can also work offline? I can think of some ways to counter this scenario but I just wanted to know if Firebase storage does it for you :P.
No, Firebase can't upload your image without internet connectivity. But it will automatically retry until there is!
I thought firebase has offline capabilities. I am using it right now, well but not in an image.
How do i download a pdf file stored in Firebase?
how to download image from firebase to unity
Can we upload text file and if yes then how to retrieve
Thank you. Could you make a video for phone number authentication like whatsapp for android
Can I stream audio from the firebase storage?
Помогите, как загрузить изображение в приложение. Help. How do I download images from Firebase?
Could you be more specific about what you're trying to accomplish? Are you trying to use the SDK to perform the download?
Thanks
how can i upload audio from user
man app crashes after clicking to upload
"code": 400, "message": "Permission denied. Could not access bucket lustrous-oasis-275506.appspot.com. Please enable Firebase Storage for your bucket by visiting the Storage tab in the Firebase Console and ensure that you have sufficient permission to properly provision resources.", "status": "ACCESS_BUCKET" } sir i was enter a link n this happened how to solve (sry for my english)
hey buddy how did you do overlay text on image
Use RelativeLayout
Are the project files for this available anywhere?
I am administrator and i want upload text file in firebase storage. It is possible. If yes then how other user see text file in own devices
3:36 shouldn't the filename generation normally be done on the server side to prevent theoretically duplicates/ensure uniqueness? But that's not possible with just using Firebase Storage I guess, because we need explicit logic/code to do that? E: What do you think of this approach to let the Firebase Database generate a unique ID for the metadata entry and use this ID for the file (upload the file after creating a DB entry)?: stackoverflow.com/a/39369630
E2: use this for the new Firebase Firestore: firebase.google.com/docs/firestore/manage-data/add-data#add_a_document
Add the returned path of the renamed and uploaded file (to the Firebase Storage) to a new metadata document in the Firebase Firestore. Is this the right way?
I believe a UUID is just a random set of hex numbers that is statistically near impossible to be repeated, so the client can create it and upload it to the server just fine.
Can we store docx files in Firebase Storage?
You can store whatever you want. Files are all just sequences of bytes from the perspective of Storage.
So how am i supposed to retrieve docx file? Is it same as retrieving images?
It's the same interfaces for all files.
i love u guys
aaaaahhhhh ☺
How to add videos?
Hi! Can i download all pics from Firebase storage folder ?
Not from the code. I think it's only possible from the console
Wow!
the way you teach is way too fast.
Firebase docs are very difficult.. a lot of developers prefer clear tutorials