29 Jan
2003
29 Jan
'03
8:20 p.m.
treblid@tpg.com.au wrote at 2003-1-29 13:45 +1100:
I have created a dynamic PDF file which I would like to send to the client without creating any Zope objects. I have the contents of the PDF file in a variable, and I use the follow snippet of code to send the pdf file to the client --- RESPONSE.setHeader("Content-Type", "application/pdf") RESPONSE.write(pdf) According to the HTTP 1.1 spec, you must provide a correct "Content-Length" header.
Dieter