Returning PDF (or other MIME types)

jfitzpatrick

New Member
How can we return dynamically generated PDF (which contains nulls) back through the webstream?

Our documents are stored in XML or plain text, and converted to PDF on the fly in order to retain paging, fonts, etc. at the browser. The PDF is created via a Perl script called via "input-output through", but because of the nulls, we can't read the PDF back into Progress.

We can simply generate the PDF, save it and return a redirect header to the browser that points to the cached file on the server, but it would be much more elegant to return the PDF directly without the extra step. For that matter, it would be nice to be able to generate any MIME type dynamically through Webspeed, e.g. GIF graphs.
 
Top