[Zope] images

Dieter Maurer dieter@handshake.de
Wed, 20 Nov 2002 19:52:32 +0100


D. Rick Anderson writes:
 > Sorry if this has been covered somewhere, but I can't find it and I'm stuck.
 > 
 > What I need is an image 'server' of sorts. A single object that will 
 > render the contents of an image that is requested. I tried creating a 
 > document called imageServer.jpg that contained:
 > 
 > <dtml-with images>
 > <dtml-var "imageName.read()">  #also tried _[imageName].read()
 > </dtml-with>
Try:
   <dtml-with images>
     <dtml-return expr="_.getitem(imageName).index_html(REQUEST,RESPONSE)">
   </dtml-with>


Dieter