Accessing Images in Firebase Storage in Python

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 36

  • @DeathCross-kn9ou
    @DeathCross-kn9ou 4 місяці тому

    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 2 роки тому

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

  • @zacharyullom4614
    @zacharyullom4614 6 місяців тому

    Super helpful, thank you!

  • @aniketkumar221
    @aniketkumar221 Рік тому +1

    Thanks for this video 💖💖💖💖

  • @jfsjuan
    @jfsjuan Рік тому +1

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

  • @justitroyal7032
    @justitroyal7032 8 місяців тому

    Thankyou

  • @anuththaraanandaraj5165
    @anuththaraanandaraj5165 Рік тому

    Thank you so much !!

  • @muazkartal2399
    @muazkartal2399 2 роки тому

    Thanks so much

    • @hassankhan-gn8pz
      @hassankhan-gn8pz 2 роки тому

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

  • @thisis.jacopo
    @thisis.jacopo 2 роки тому

    Thank you!

  • @Patronesofly
    @Patronesofly 7 місяців тому

    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?

  • @JulioCesar-su4is
    @JulioCesar-su4is 2 роки тому

    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.

  • @ricardoaguilarsuaste40
    @ricardoaguilarsuaste40 2 роки тому

    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  2 роки тому +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 2 роки тому

      @@the_whiz thank you!

    • @itsguardiantime4928
      @itsguardiantime4928 2 роки тому

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

    • @the_whiz
      @the_whiz  2 роки тому

      @@itsguardiantime4928 did the above solution help?

    • @markoturban8774
      @markoturban8774 2 роки тому

      @@the_whiz It did not helped for me

  • @sugandhasingh3833
    @sugandhasingh3833 2 роки тому +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  2 роки тому

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

  • @AmeyaDikshit
    @AmeyaDikshit 2 роки тому +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  2 роки тому

      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 2 роки тому +1

      figure it out yourself

    • @soundarrajanrajan7095
      @soundarrajanrajan7095 6 місяців тому +1

      @@pratham6412 plz tell me how

  • @l3wg471
    @l3wg471 2 роки тому

    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  2 роки тому

      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 2 роки тому

      Send here, if you got the code✌️

  • @collgeper695
    @collgeper695 2 роки тому

    How to access dynamically all the images that are present

    • @the_whiz
      @the_whiz  2 роки тому

      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

  • @shovitprusty4050
    @shovitprusty4050 2 роки тому

    How to retrieve lastest custom image from firebase storage??

    • @the_whiz
      @the_whiz  2 роки тому +1

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

    • @shovitprusty4050
      @shovitprusty4050 2 роки тому

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

    • @the_whiz
      @the_whiz  2 роки тому +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 2 роки тому

      @@the_whiz great, thanks a lot😊