[Zope-dev] Access Content stored in the FileSystem without storing them in the ZODB

Dieter Maurer dieter at handshake.de
Tue Dec 28 14:22:35 EST 2004


MET 2004-2005 wrote at 2004-12-21 16:28 +0530:
> ...
>Can anybody tell me How can I display the Content of an Object that is an
>Image in a Page Template?

You cannot, or better, you should not.

A Page Template is a facility to generate structured text (HTML/SGML or XML)
and not images.

Use a Python Script instead. Do not forget to set "Content-Type"
of the response correctly
("container.REQUEST.RESPONSE.setHeader('Content-Type', <the correct content type>)").



-- 
Dieter


More information about the Zope-Dev mailing list