Getting Started with Firebase Storage on Android - Firecasts

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 63

  • @ker246
    @ker246 8 лет назад

    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.

  • @adtechnologies6296
    @adtechnologies6296 6 лет назад +3

    getDownloadUrl() is Deprecated. Any idea how to solve this ?! Thanks in advance

    • @cristianbabarusi6632
      @cristianbabarusi6632 5 лет назад

      follow this instructions ... is very simple (only 3 lines of code) stackoverflow.com/questions/50467814/tasksnapshot-getdownloadurl-is-deprecated/55440618?fbclid=IwAR28FCecWOVCTz4nW0ZvXDT7V9QKcK9iJrETPVRAfhoY-rfVOXaWkva4Fo4#55440618

  • @tamirmoav3774
    @tamirmoav3774 2 года назад

    when I open my storage there is no download url only token code - why is that?

  • @eletrizuados
    @eletrizuados 6 лет назад

    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?

  • @johndbrown91
    @johndbrown91 8 лет назад +1

    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.

    • @dougstevenson3769
      @dougstevenson3769 8 лет назад +3

      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.

    • @johndbrown91
      @johndbrown91 8 лет назад

      Doug Stevenson 😮interesting! I'll give this a try, thanks! 👍

  • @أندروميدا-ش7ك
    @أندروميدا-ش7ك 5 лет назад

    Firebase docs are very difficult.. a lot of developers prefer clear tutorials

  • @stctraining9846
    @stctraining9846 6 лет назад

    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.

    • @dougstevenson3769
      @dougstevenson3769 6 лет назад

      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).

    • @stctraining9846
      @stctraining9846 6 лет назад

      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.

    • @dougstevenson3769
      @dougstevenson3769 6 лет назад

      You can always file a feature request. firebase.google.com/support/contact/bugs-features/

  • @mcifci
    @mcifci 4 года назад

    ı can't see any videos about explain clearly storage rules .

  • @nabilhachhach
    @nabilhachhach 8 лет назад

    Thank you so much Mr Doug! very nice cource

  • @1337toaster
    @1337toaster 5 лет назад

    Great Video! So helpful!

  • @someguy007
    @someguy007 3 года назад

    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

  • @fawwadahmed5603
    @fawwadahmed5603 5 лет назад

    Hello. How can I get the image from storage use in android application?

  • @divyangshah99
    @divyangshah99 7 лет назад

    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 ?

  • @ais_robotic
    @ais_robotic 4 года назад

    Is firebase storage is unabale now?? my app cant upload file!

  • @kunalagarwal5696
    @kunalagarwal5696 8 лет назад

    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? ✌

    • @dougstevenson3769
      @dougstevenson3769 8 лет назад

      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.

    • @kunalagarwal5696
      @kunalagarwal5696 8 лет назад

      Doug Stevenson Thank you! :)

  • @MarkRonnelCamilon
    @MarkRonnelCamilon 8 лет назад +1

    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?

    • @dougstevenson3769
      @dougstevenson3769 8 лет назад +1

      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.

    • @MarkRonnelCamilon
      @MarkRonnelCamilon 8 лет назад

      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.

    • @Seth2983
      @Seth2983 8 лет назад

      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.

    • @dougstevenson3769
      @dougstevenson3769 8 лет назад

      No, Firebase can't upload your image without internet connectivity. But it will automatically retry until there is!

    • @MarkRonnelCamilon
      @MarkRonnelCamilon 8 лет назад

      I thought firebase has offline capabilities. I am using it right now, well but not in an image.

  • @vrushabhgore8170
    @vrushabhgore8170 7 лет назад

    How do i download a pdf file stored in Firebase?

  • @WeisterXDprogrammer
    @WeisterXDprogrammer 5 лет назад

    how to download image from firebase to unity

  • @KickassCoders
    @KickassCoders 6 лет назад

    Can we upload text file and if yes then how to retrieve

  • @ahmermajeed3669
    @ahmermajeed3669 7 лет назад +1

    Thank you. Could you make a video for phone number authentication like whatsapp for android

  • @LeonardoMarchese98
    @LeonardoMarchese98 7 лет назад

    Can I stream audio from the firebase storage?

  • @rikmentv8993
    @rikmentv8993 7 лет назад

    Помогите, как загрузить изображение в приложение. Help. How do I download images from Firebase?

    • @dougstevenson3769
      @dougstevenson3769 7 лет назад

      Could you be more specific about what you're trying to accomplish? Are you trying to use the SDK to perform the download?

  • @01elsaker
    @01elsaker 5 лет назад

    Thanks

  • @mohamedabuelyouser3632
    @mohamedabuelyouser3632 7 лет назад

    how can i upload audio from user

  • @bilalullahkhan5517
    @bilalullahkhan5517 4 года назад

    man app crashes after clicking to upload

  • @zus9235
    @zus9235 4 года назад

    "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)

  • @bilalullahkhan5517
    @bilalullahkhan5517 4 года назад

    hey buddy how did you do overlay text on image

  • @dbcomix
    @dbcomix 8 лет назад

    Are the project files for this available anywhere?

  • @tusharsoni5136
    @tusharsoni5136 6 лет назад

    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

  • @duracotton
    @duracotton 7 лет назад

    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?

    • @michaelleonard9266
      @michaelleonard9266 2 года назад

      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.

  • @educatingmoney1504
    @educatingmoney1504 7 лет назад

    Can we store docx files in Firebase Storage?

    • @dougstevenson3769
      @dougstevenson3769 7 лет назад

      You can store whatever you want. Files are all just sequences of bytes from the perspective of Storage.

    • @educatingmoney1504
      @educatingmoney1504 7 лет назад

      So how am i supposed to retrieve docx file? Is it same as retrieving images?

    • @dougstevenson3769
      @dougstevenson3769 7 лет назад

      It's the same interfaces for all files.

  • @duranahmet761
    @duranahmet761 8 лет назад

    i love u guys

  • @YogeshDesai1293
    @YogeshDesai1293 7 лет назад

    How to add videos?

  • @hayhova1175
    @hayhova1175 8 лет назад

    Hi! Can i download all pics from Firebase storage folder ?

    • @DanielPassos
      @DanielPassos 7 лет назад

      Not from the code. I think it's only possible from the console

  • @AbdullahAlHasanCSE91
    @AbdullahAlHasanCSE91 8 лет назад

    Wow!

  • @dummyproto3812
    @dummyproto3812 7 лет назад

    the way you teach is way too fast.

  • @أندروميدا-ش7ك
    @أندروميدا-ش7ك 5 лет назад

    Firebase docs are very difficult.. a lot of developers prefer clear tutorials