im.tostring returns raw image data but you need to pass whole image file data to MIMEImage, so use StringIO module to save the image to memory and use that ...
確定! 回上一頁