Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/10/2004, 09:22
Avatar de hugo777
hugo777
 
Fecha de Ingreso: enero-2002
Ubicación: Lima, Perú
Mensajes: 757
Antigüedad: 22 años, 4 meses
Puntos: 1
Hola, prueba poniendole otro content type ...

Código PHP:
response.setContentType("application/octet-string");
response.setHeader("Content-Disposition""attachment; filename=documento.pdf;");

PrintStream salida = new PrintStream(response.getOutputStream());
...
      
salida.write(bytes0i);
...
salida.close(); 
A veces los browser ya te configuran para abrir un tipo de archivo por defecto. Y si le cambias de extensión?...
__________________
Saludos,

H@C..