-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Siomara,
On 7/11/2009 10:31 PM, siom...@portosdobrasil.gov.br wrote:
> Filef= new File(filename);
> response.setContentType( (mimetype != null) ? mimetype :
> "application/octet-stream" );
If the content type
Sure:
package servlets.comum;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import comum.ArquivoGestor;
/**
* Definition of class DownloadFile.
*/
public class DownloadFile extends HttpServlet
{
private String original_filename = "MYFILE.txt";
private String