[Zope] Mysql get/set blob

Andreas Jung lists at andreas-jung.com
Fri Nov 19 05:52:39 EST 2004


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:

> hi,
>
> 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.
>
> I hope anybody can help me with an "HelloWorld" example
>
> Thx
>
> Baptiste
>
> --
> Derivexperts
> Paris Cyber Village
> 101-103 Boulevard Mac Donald
> 75019 Paris
> 01 44 89 47 49
> _______________________________________________
> 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