[Zope] Mysql get/set blob
Andreas Jung
lists at andreas-jung.com
Sun Nov 21 02:59:21 EST 2004
How do you want to reverse the conversion from dict to string?
-aj
--On Samstag, 20. November 2004 22:53 Uhr -0800 David Siedband
<david at calteg.org> wrote:
> 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.
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list