L
Laltu
Hi,
I am facing a pecular problem.I am generating xls file at app server
and downloading it to the client.But after downloading if the file is
opened it is coming as deformed where as if i am opening the same file
generated at the server it is opening perfectly.can anyone plz help me
regarding this.I am using like this
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "attachment;
filetype=.xls");
svrOut = response.getOutputStream();
foIn = new FileInputStream(strDesname);
copyFile(foIn, svrOut);
I am facing a pecular problem.I am generating xls file at app server
and downloading it to the client.But after downloading if the file is
opened it is coming as deformed where as if i am opening the same file
generated at the server it is opening perfectly.can anyone plz help me
regarding this.I am using like this
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition", "attachment;
filetype=.xls");
svrOut = response.getOutputStream();
foIn = new FileInputStream(strDesname);
copyFile(foIn, svrOut);