Accessing Images in Firebase Storage in Python

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 36

  • @DeathCross-kn9ou
    @DeathCross-kn9ou Před 2 měsíci

    you opened up my eyes into a new world and saved me from repeating a year YOU AREEEE THE BESTTTTTTTTTTTTT I HOPE YOU NEVER STOP UPLOADING

  • @ashleyoffret7362
    @ashleyoffret7362 Před rokem

    I've been stuck on my python project and this is exactly what I was looking for. Thank you!

  • @zacharyullom4614
    @zacharyullom4614 Před 4 měsíci

    Super helpful, thank you!

  • @jfsjuan
    @jfsjuan Před rokem +1

    muito bom não tinha percebido essa.....

  • @aniketkumar221
    @aniketkumar221 Před rokem +1

    Thanks for this video 💖💖💖💖

  • @justitroyal7032
    @justitroyal7032 Před 6 měsíci

    Thankyou

  • @Patronesofly
    @Patronesofly Před 5 měsíci

    So your telling me you can't just call the photos directly from firestorage?
    lets say I had a app that creates invoices and the invoice needed a logo I need to run these many lines of codes just to get that image? There is no direct way to get a url to that image ?
    Is there any way to return a list of url images that are on the db?

  • @anuththaraanandaraj5165

    Thank you so much !!

  • @AmeyaDikshit
    @AmeyaDikshit Před rokem +1

    Received the below error even after using your same code:
    AttributeError: 'NoneType' object has no attribute 'download_as_string'
    Plz help

    • @the_whiz
      @the_whiz  Před rokem

      I believe you might have called "blob" as both a variable and a function. Therefore, it is saying it has no attribute "download_as_string"

    • @pratham6412
      @pratham6412 Před rokem +1

      figure it out yourself

    • @soundarrajanrajan7095
      @soundarrajanrajan7095 Před 4 měsíci +1

      @@pratham6412 plz tell me how

  • @JulioCesar-su4is
    @JulioCesar-su4is Před 2 lety

    289 / 5.000
    Resultados de tradução
    i wish i could give 200,000 likes... luckily i can only do this once.
    thank you very much... I really needed to do this image visualization of my firebase database and there is nothing and no one that could do it so perfectly. Thank you very much, God bless you greatly.

  • @thisis.jacopo
    @thisis.jacopo Před 2 lety

    Thank you!

  • @sugandhasingh3833
    @sugandhasingh3833 Před 2 lety +1

    i want to convert image into grayscale and store in firebase how is it possible can you code this it will be appreciable?

    • @the_whiz
      @the_whiz  Před 2 lety

      here are some solutions here you can try! stackoverflow.com/questions/12201577/how-can-i-convert-an-rgb-image-into-grayscale-in-python

  • @muazkartal2399
    @muazkartal2399 Před rokem

    Thanks so much

    • @hassankhan-gn8pz
      @hassankhan-gn8pz Před rokem

      can you tell me how your code error was resolved i am having the same error but i am unable to resolve it

  • @l3wg471
    @l3wg471 Před 2 lety

    could you explain the sys.argv[1] part agian? if i wanted to get the the first image in storage, without specifying the name what would the code be for that?

    • @the_whiz
      @the_whiz  Před 2 lety

      the sys.argv[1] is basically getting the parameter that you pass into the function for when you call it in the console or if you call it via node. this is not necessary and therefore, can be removed.
      you can sort via date and then grab the top one because typically firebase auto sorts via date. let me know whether this article is of any help! stackoverflow.com/questions/39972388/firebase-web-storage-upload-a-file-without-specifying-its-name

    • @nithishp7802
      @nithishp7802 Před 2 lety

      Send here, if you got the code✌️

  • @collgeper695
    @collgeper695 Před 2 lety

    How to access dynamically all the images that are present

    • @the_whiz
      @the_whiz  Před 2 lety

      i think the best solution is to iterate through the bucket. this article explains how you can also use gsutils instead: stackoverflow.com/questions/41461337/how-to-download-entire-folder-from-firebase-storage

  • @ricardoaguilarsuaste40

    Hi, great video!, I have a question, I get an error in arr = np.frombuffer(blob.download_as_string(), np.vint8)
    It says: 'NoneType' object has no attribute 'download_as_string'
    Do you have any idea of how can I fix it?

    • @the_whiz
      @the_whiz  Před 2 lety +1

      I believe you might have called "blob" as both a variable and a function. Therefore, it is saying it has no attribute "download_as_string"

    • @ricardoaguilarsuaste40
      @ricardoaguilarsuaste40 Před 2 lety

      @@the_whiz thank you!

    • @itsguardiantime4928
      @itsguardiantime4928 Před 2 lety

      ​@@the_whiz I'm getting the same error, how would you fix it?

    • @the_whiz
      @the_whiz  Před 2 lety

      @@itsguardiantime4928 did the above solution help?

    • @markoturban8774
      @markoturban8774 Před 2 lety

      @@the_whiz It did not helped for me

  • @shovitprusty4050
    @shovitprusty4050 Před 2 lety

    How to retrieve lastest custom image from firebase storage??

    • @the_whiz
      @the_whiz  Před 2 lety +1

      to my knowledge, iterate and find the youngest date. however, this is definitely a question for the internet :D

    • @shovitprusty4050
      @shovitprusty4050 Před 2 lety

      @@the_whiz thanks a lot , can you send a code or refference of it?

    • @the_whiz
      @the_whiz  Před 2 lety +1

      @@shovitprusty4050 this is code ive written before for deleting too old entries for React Native, but you should be able to work with it since they are extremely similar when it comes to the firebase library:
      const querySnapshot = await firestore.collection("deersighting").get(); //make this work and not delete values in database
      querySnapshot.forEach(async (doc) => {
      if (new Date() - doc.data().created_at > 300000) {
      doc.ref.delete();
      } else {
      arr.push(doc.data());
      }
      });

    • @shovitprusty4050
      @shovitprusty4050 Před 2 lety

      @@the_whiz great, thanks a lot😊