Hello! Welcome to this video. In this video, you will learn how to access images in firebase storage in python without having to download them locally. This will make your program easier to upload onto web hosts like Heroku and protect yourself from downloading all your user images on large platforms.
If you run into any errors, comment down below and I will help you out!
Important Links:
- Firebase: firebase.com/
- Code: drive.google.com/drive/folder...
Download Image Locally:
blob = bucket.get_blob('image.png') #this is the name of your image
blob.download_to_filename(r"./image.png") #the r in front is to indicate that this is locally downloading - it is required
Timings:
0:00 - Set up Firebase Storage & Service Account
2:45 - Firebase Credentials
7:30 - Accessing Images from Storage
13:00 - Testing & Final Comments
If you learned from this video, give this video a thumbs up and subscribe to this channel! To stay updated on all our future videos, click the notification bell!
Enjoy and happy coding!
11 июл 2024