I\'m currently having trouble creating an image from a binary string of data in my Python program. I receive the binary data via a socket but when I try the methods I read
You have either call buff.seek(0) or, better, initialize memory buffer with data StringIO.StringIO(data).
buff.seek(0)
StringIO.StringIO(data)