On the server, perform the following steps:
> Parse the request and determine the file to serve
> Open a FileInputStream to the appropriate file
> Obtain a reference to the Servlet OutputStream
> Pipe the bytes from the file to the output stream
> Flush and close the stream
You might want to call HttpServletResponse.setContentType("application/octet") to indicate to the browser that a file download will be occurring. Do so before getting the reference to the Servlet's OutputStream.
- Saish