954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

download whole directory using servlet

Hi everyone,

Im trying to download all files in a directory residing in the server to clients pc.

I know how to download single files using response.getoutputStream().

My problem is I want to download ALL the files in that directory with a single click of a button.

i tried iterating all the files in dir.list() but what happens is it chunks all data into a single file.

Any help would be appreciated.

Eric Cute
Posting Whiz in Training
252 posts since Jun 2010
Reputation Points: 55
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: