Re: Write a file to outputstream and supply a diferent name for it

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Anton Sommer (anton.schamy_no_spam__at_arcor.de)
Date: 03/15/04


Date: Mon, 15 Mar 2004 16:34:20 +0100

Thank you Gregory for answering,

"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> schrieb im
Newsbeitrag news:u%23tH2mpCEHA.2404@TK2MSFTNGP11.phx.gbl...
> You can write to the HTTP stream directly. The biggest hurdle is ensuring
> any type you are "downloading" has a MIME type in the web server, or it
will
> be downloaded as garbage. I would watch how big of a file you "download"
via
> this method, as timeout is a potential (not present in links, but will be
in
> downloading from a page).

How would I set the MIME type individually and how would I set the file name
suggested to the user?

Thank you

            Anton