I am using an appfuse based web application and have a spring controller that allows users to download zip files, the code looks like
public ModelAndView download(HttpServletRequest request,HttpServletResponse response,Object command,BindException throws Exception { ... byte[] data = loadFile(s3Key); response.setBufferSize(4096); response.setContentType("application/zip"); response.setContentLength(data.length); response.setHeader("Content-Disposition", "attachment; filename=" + s3Key + ".zip"); ServletOutputStream ouputStream = response.getOutputStream(); ouputStream.write(data, 0, data.length); ouputStream.flush();ouputStream.close(); return mav; } Though this is working in Firefox, but I noticed that IE is not quite working on IE. In both cases, I can download and save the file, but with IE the file is missing about 36 bytes and IE can't open it. Any ideas. Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]