1.11M Members

download tgz file using jsp

 
0
 

hello all

i have a tgz file on the system.Now i want to download it in my jsp page.but i have not any idea how to do it.

currently i am downloading the text file in jsp using following code

response.setContentType("Text/html");
 response.setHeader("Content-Disposition","attachment;filename="+strFileName+"");

please help.....

 
0
 

Please refer the MIME types list.

 
0
 

Please refer the MIME types list.

i have done that and there is also prompt fro the download or open the tgz file.but when i open the file it tells "Unknown Format oR FILE IS DAMAGED".

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: