Hey, I believe that my app is raising an error when attempting to read and decompress a mysql blob with StringIO + gzip. The same code is working on my localhost. I get the following error
2014-11-24 10:45:36,153 :IOError: write error
2014-11-24 10:45:36,157 :RuntimeError: generator ignored GeneratorExit
and here are the code lines that likely are the problem:
import StringIO
import gzip
fio = StringIO.StringIO(mystring) # mystring is a string that contains binary data, result of compressing json with gzip and inserting in mysql as binary to blob field
f = gzip.GzipFile(fileobj=fio)
jsonstring = f.read()
Any suggestion or alternatives? I have seen that StringIO has been a reason of conflict particularly to decompress images.
[edit by admin: formatting]