1,105,197 Community Members

download tgz file using jsp

Member Avatar
manish250
Junior Poster in Training
88 posts since Aug 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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.....

Member Avatar
__avd
Posting Genius (adatapost)
6,703 posts since Oct 2008
Reputation Points: 1,811 [?]
Q&As Helped to Solve: 1,272 [?]
Skill Endorsements: 61 [?]
Moderator
 
0
 

Please refer the MIME types list.

Member Avatar
manish250
Junior Poster in Training
88 posts since Aug 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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 three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: