Re: MySQLdb blob and binary data

2004-12-10 Thread Denis S. Otkidach
On Fri, 10 Dec 2004 16:58:56 +0100 Rune Hansen <[EMAIL PROTECTED]> wrote: > I'm storing gzipped data in a MySQL blob field. I can fetch the blob and > "wb" write the data to a file. It becomes a file containg gz data. > > I can't take the same data and do anything sensible with it in python - >

MySQLdb blob and binary data

2004-12-10 Thread Rune Hansen
I'm storing gzipped data in a MySQL blob field. I can fetch the blob and "wb" write the data to a file. It becomes a file containg gz data. I can't take the same data and do anything sensible with it in python - like say zlib.decompress(data). How can I convert the binary data from the blob fie