Thanks everyone for your advice. Between the group of you and my own doh! moment, I've got it working. In case anyone was curious, here's what I was trying to do:
Upload a file and store it uuencoded in a database. Dynamically retrieve the file from the database, uudecode it, and serve it. I know, it's not the best way to handle it, and if anyone has any better ideas, feel free share them. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Luke Opperman Sent: Tuesday, May 14, 2002 6:15 PM To: Webware Discuss Subject: Re: [Webware-discuss] serving binary files from Webware 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 ...? --- Tavis Rudd <[EMAIL PROTECTED]> wrote: > Just put them inside a context directory and WebKit will > take care of the > rest, provided it can determine the correct mime-type > from the filename > extension. > Tavis ===== ------------------ Sanity is a form of conformity. -John Nash ------------------ __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com _______________________________________________________________ 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 _______________________________________________________________ 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
