[Zope] Mysql get/set blob
David Siedband
david at calteg.org
Sun Nov 21 01:53:39 EST 2004
Is there a advantage to pickling a dictionary and storing it in a blob
field rather than converting it to a string and storing it in a text
field?
--
David
On Nov 19, 2004, at 2:52 AM, Andreas Jung wrote:
> You can convert a Python object to a byte stream by using Python's
> 'pickle'
> or 'cPickle' module -> see Python Library Reference for details and
> examples.
>
> -aj
>
> --On Freitag, 19. November 2004 11:47 Uhr +0100 baptiste Ancey
> <baptiste.ancey at derivexperts.com> wrote:
>
>> I use Zope for my website with a Mysql Database.
>>
>> I just want to store a python dictionary to a blob column of my table.
>>
>> And my problem is that i don't know how to set and get var to a blob
>> from
>> a script for example...
>> I see some blob example on the web but always with file variable
>> (thumbnails ...) never with the other kind of variable.
More information about the Zope
mailing list