[Zope] Render image from external method.
Jason C. Leach
jason.leach at gmail.com
Wed Feb 15 20:06:57 EST 2006
Hi,
I'm wondering how I can render an image from an external method
without creating a permanent image object in Zope? What I have is a
python script I call in my ZPT. The python script does some things,
and calls an external method that returns PNG image data. If I do
tal:attributes="src python:python_script()" What I get is the string
containing the PNG image data, but it's not rendered.
An example of what I get is: <img src="?PNG <PAGE OF BINARY DATA>" />
Any ideas? I don't really want to create a permanent image object,
and I know that will work because I have used it to create thumbnail
images before.
Thanks,
Jason.
--
........................................
.... Jason C. Leach
.... PGP Key: 0x62DDDF75
.... Keyserver: gpg.mit.edu
More information about the Zope
mailing list