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?
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.
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?
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 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
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 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()); } });
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
I've been stuck on my python project and this is exactly what I was looking for. Thank you!
Super helpful, thank you!
Thanks for this video 💖💖💖💖
muito bom não tinha percebido essa.....
Thankyou
Thank you so much !!
Thanks so much
can you tell me how your code error was resolved i am having the same error but i am unable to resolve it
Thank you!
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?
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.
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?
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"
@@the_whiz thank you!
@@the_whiz I'm getting the same error, how would you fix it?
@@itsguardiantime4928 did the above solution help?
@@the_whiz It did not helped for me
i want to convert image into grayscale and store in firebase how is it possible can you code this it will be appreciable?
here are some solutions here you can try! stackoverflow.com/questions/12201577/how-can-i-convert-an-rgb-image-into-grayscale-in-python
Received the below error even after using your same code:
AttributeError: 'NoneType' object has no attribute 'download_as_string'
Plz help
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"
figure it out yourself
@@pratham6412 plz tell me how
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 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
Send here, if you got the code✌️
How to access dynamically all the images that are present
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
How to retrieve lastest custom image from firebase storage??
to my knowledge, iterate and find the youngest date. however, this is definitely a question for the internet :D
@@the_whiz thanks a lot , can you send a code or refference of it?
@@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());
}
});
@@the_whiz great, thanks a lot😊