0
我試圖弄清楚如何將Pillow
Image
實例上傳到Firebase存儲桶。這可能嗎?Python:將Pillow圖片上傳到Firebase存儲桶
下面是一些代碼:
from PIL import Image
image = Image.open(file)
# how to upload to a firebase storage bucket?
我知道有一個gcloud-python
庫,但做到這一點支持Image
實例?將圖像轉換爲字符串我唯一的選擇?
''bucket-id-here''看起來像''gs:// example.appspot.com''還是隻是''example.appspot.com''? – rigdonmr
只是'example.appspot.com' :) –