On May 14, 2002 03:14 pm, Luke Opperman wrote:
> Not sure if this is what Bob's question was, but I have a
> question different from your answers so far, that might
> also be his question:
>
> Assuming I have a python function that dynamically
> generates a file (PDF using reportlab's library perhaps, or
> a jpeg using PIL, or...), how can I have a webware servlet
> output it?
>
> just response().setHeader('Content-type','xxx/xxx') and
> ...?

Yep, just like Matt described it.

You can also use 'Content-Disposition' as Matt pointed out.  See 
http://webware.colorstudy.net/twiki/bin/view/Webware/FileStreamingAndContentDisposition


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to