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' :) –