>> i want to send an image or a pdf to a browser not for viewing but for
>> I've written this code:
>> <dtml-call "RESPONSE.setHeader('Content-type',
>> <dtml-call "RESPONSE.setHeader('Content-Disposition', 'attachment;
>> now i have to send the file as a binary flow, but i don't know how to
>> do. Can you help me?
> Do you plan to always send the file for download?
> Then you just put a script name into "precondition"
> field of the object. The script could be something
> (Python script)
> filename=%s' % context.getId())
Nice idea, but what i need is different. In PHP there is a function
called readfile, i'm sure there is something also in Zope, but i'm not
able to find it!
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -