[RasPi3][Firebase][Python] Have problem when upload image to Firebase storage / Error Generating Download URL

899 views
Skip to first unread message

Mausuo Masahiro

unread,
Feb 1, 2017, 10:46:14 AM2/1/17
to Firebase Google Group
Hi.
I'm working on part of my project that. have to send image from Raspberry Pi to Firebase Storage.

First time that I tried to send file to Firebase Storage I had many problem , but i solve all of it.
But today when i try o upload image file from Rasphery Pi again, it's work, file are all uploaded to Firebase Storage.
But i can't open any of it. Then i try to upload image from my PC ans it's work, also can open image and download it too.

I write code in Python and this is my code.

from google.clound import storage
client = storage.Client()
bucket= client.get_bucket("my-project.appspot.com")

blob = bucket.blob('photo/test.jpg')
blob.upload_from_filename(file='/home/pi/test.jpg')

from google.cloud import storage

client = storage.Client()
bucket = client.get_bucket('my-prohect.appspot.com')

blob = bucket.blob('photo/test.jpg')
blob.upload_from_filename(filename='/home/pi/test.jpg')



Rule on my firebasse Storage is public . So I think Raspberry Pi don't have problem about authentication// Or for this case i have to set any rule? 
I try to create URL download on Firebase Console but there is error tell "Error Generating Download URL"

What should I do ?

Thank...

Mike McDonald

unread,
Feb 1, 2017, 11:00:27 AM2/1/17
to Firebase Google Group
Reply all
Reply to author
Forward
0 new messages