[Zope] How to convert an Image to an Photo programmatically ?

Ron Bickers rbickers-dated-1017335659.6c2bc8@logicetc.com
Thu, 21 Mar 2002 12:14:18 -0500


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of

> thanks, that did the trick for images under 64kb, the following works for
> all images:

Ah, yes.  The Image "parts" don't work with my initial fix.  This will do
the job as well.

     try:
         photo._data = file.read()
     except AttributeError:
         photo._data = str(file)

Thanks!
_______________________

Ron Bickers
Logic Etc, Inc.