
09/04/2015, 14:27
|
 | | | Fecha de Ingreso: agosto-2014 Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 10 años, 7 meses Puntos: 182 | |
Respuesta: cache del navegador, problema de descarga Buenas,
Prueba a establecer la cabecera http adecuada para evitar que cachee.
Por ejemplo: byte [] outArray = outByteStream.toByteArray();
response.setContentType("application/ms-excel");
response.setContentLength(outArray.length); response.setHeader("Expires:", "0");
response.setHeader("Content-Disposition", "attachment; filename=testxls.xls");
OutputStream outStream = response.getOutputStream();
outStream.write(outArray);
outStream.flush();
Un saludo
__________________ If to err is human, then programmers are the most human of us |