I have the browser displaying the data in realtime.
Content-Disposition: attachment; filename="filename.ext"
The easiest way is to read the file a byte at a time and send it to the network.
it would be unfortunate for the OP to be left with the impression he has to work out a fully buffered implementation as part of his first project.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16