Closed anug7 closed 4 years ago
In Python 3,
Line no: 52 pil_img = Image.open(StringIO(img_msg.data)) fails..
pil_img = Image.open(StringIO(img_msg.data))
It works when using BytesIO from io module Line no: 35 from io import BytesIO Line no: 52 pil_img = Image.open(BytesIO(img_msg.data))
BytesIO
io
from io import BytesIO
pil_img = Image.open(BytesIO(img_msg.data))
In Python 3,
Line no: 52
pil_img = Image.open(StringIO(img_msg.data))
fails..It works when using
BytesIO
fromio
module Line no: 35from io import BytesIO
Line no: 52pil_img = Image.open(BytesIO(img_msg.data))