Christoph Landwehr schrieb: > Somehow I seem to pass the wong data to StringIO: > > image=StringIO(my_PIL_image.tostring()) > Is the PIL Image method tostring() the right choice? I found the solution (thanx to Fredrik Lundh) : file = StringIO() image.save(file, "JPEG") return file.getvalue() Regards Christoph