> I am compressing  files which need to be uncompressed inline 
> before download. The DTML  <href=...> calles a python method 
> in the product which returns the  uncompressed file data. Say 
> this file is an MSWord document, how do I return  this as a file 
> to download? Presently, the browser just tries to display the 
> binary file and makes a mess of it.
> Regards,
> Simon  B. 

Hi Simon,

First off, please don't send HTML mail to the list.

You will have to set the Content-Type HTTP header to do that:
REQUEST.RESPONSE.setHeader('Content-Type', content_type)
where content_type is the right MIME type of the file you return, e.g.
something like 'application/msword' in your case.
Hope  that helps.



Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!

GMX - Die Kommunikationsplattform im Internet.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to