【发布时间】:2017-07-20 22:25:09
【问题描述】:
我正在尝试将 PIL 图像从 Datalab 保存到谷歌云存储。
from PIL import Image
out_image = Image.open( StringIO( gs_buck_obj.read_stream() ) )
# run through cloud vision api and do some stuff
....
my_file = StringIO()
out_image.save(my_file , "PNG")
**This is where I am not sure what to do but have tried next line
gs_buck_obj_out.write_stream(my_file.getvalue(), 'text/plain')
【问题讨论】:
标签: google-cloud-platform google-cloud-storage python-imaging-library google-cloud-datalab google-cloud-vision