logo       

cPickled Data submission in Pysqlite: msg#00034

python.db.pysqlite.user

Subject: cPickled Data submission in Pysqlite

Hi,

I have a pickled data that I want to submit into a
column of my pysqlite. The column is of type BLOB (it
could be anything). I can submit the pickled data
without any problem, but when I retreive it, I get
the following error:

UnicodeDecodeError: 'utf8' codec can't decode bytes in
position....

With certain pickled data I can submit it, but when I
retrieve it, I don't get the complete pickled data
that I submitted therefore I get this error:

x = cPickle.loads(strr)
EOFError:

Can you please tell me the safe and correct way of
submitting cpickled data. Help will be much
appreciated.

Thanks,

Sajjad




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise