[Zope] mySQL image addition
Michel Pelletier
michel@digicool.com
Mon, 5 Jul 1999 13:55:28 -0400
> -----Original Message-----
> From: Phil Grove [mailto:phil.grove@flg21.com]
> Sent: Monday, July 05, 1999 8:59 AM
> To: zope@zope.org
> Subject: [Zope] mySQL image addition
>
>
> hi all,
>
> has anyone used mySQL to hold a number of images uploaded
> using Zope? If so
> how can it be done, i have tried using the normal INSERT
> statments into a
> BLOB field in the database but it only seems to insert a
> strange instances
> string??
>
Given that your image object is named 'image':
<!--#var image-->
will give you the object, in this case, the 'repr' of the object; which
in this case is a 'strange instance string'.
use:
<!--#var "image.data"-->
To get the actual binary contents of the Image.
-Michel
> Any ideas would be appreciated.
>
> P.
>
> ---------------------------------------------------------------------
>
> Phil Grove phil.grove@flg21.com
> Web Development 0113 2949494
> flg21 http://www.flg21.com
>
> ---------------------------------------------------------------------
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>