【发布时间】:2014-12-29 21:06:29
【问题描述】:
imgfile = open('myimage.png', 'wb')
imgfile.write(decodestring(base64_image))
f = Image.open(imgfile)
imgfile.close()
我能够将write() base64 字符串作为图像转换为imgfile。但是当我尝试用 PIL 打开这个文件时,我得到了
File not open for reading
我做错了什么?
【问题讨论】:
-
@MartijnPieters 抱歉,打错了
标签: python python-imaging-library pillow