Re: Compress cPickled object with zlib ==> store in DB?

Martin Jenkins <mj-Vfh7fEhEWOlaa/[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Organization XQP Ltd
Message-ID <[email protected]>
Andrea Gavana wrote:
> Hi All,
> 
>   I was wondering if it is possible to use zlib.compress() to
> compress a cPickled object and store it into a database, and then
> retrieve it using zlib.decompress(). I have tried for a while, but I
> keep getting errors like:

Have a look at the blob code in the vertical table example.

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.