python 2.7 - How to upload images to Firebase from Raspberry Pi? -


i having trouble uploading images firebase using python. great if can provide snippet.

take @ gcloud-python, or our docs on using gcs apis firebase storage. docs:

# import gcloud google.cloud import storage  # enable storage client = storage.client()  # reference existing bucket. bucket = client.get_bucket('projectid.appspot.com')  # upload local file new file created in bucket. zebrablob = bucket.get_blob('zebra.jpg') zebrablob.upload_from_filename(filename='/photos/zoo/zebra.jpg')  # download file bucket. giraffeblob = bucket.get_blob('giraffe.jpg') giraffeblob.download_as_string() 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -