getting serialized data into and out of a database
Michael Pelz Sherman
mpelzsherman at yahoo.com
Mon Oct 29 23:07:18 CET 2007
I'm having a devil of a time getting serialized data into and out of a database (MySQL in this case) using python and MySQLdb.
I have some C code that has its own serialization/deserialization functions, which we've wrapped using SWIG.
I am able to save the serialized C structs to disk but when I try to write the exact same data to MySQL and pull it back out, I'm getting some strange results. The data comes back looking like this:
Is this a python buffer, or what? How can I access the data in there? I've tried using  but that doesn't seem to work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list