File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Extracting downloaded zip file through code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Extracting downloaded zip file through code?" Watch "Extracting downloaded zip file through code?" New topic

Extracting downloaded zip file through code?

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276

If i have a downloaded zip file which i am downloading through the reponse object, is it possible to automatically extract the file immediately after getting downloaded....???

[ April 07, 2006: Message edited by: Bear Bibeault ]


The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I assume you are referring to the client's side? That is, the client gets sent a zip file and you want to it to be automatically unzipped?

No, you can't control what the client does with the zip after it gets sent to them.
Ganesh Chinni

Joined: Dec 30, 2005
Posts: 24
After the zip file is sent to the client, the browser throws up options to the user and based on the option selected by the user(save,extract, open ..etc), the zip file is handled.

I agree. Here's the link:
subject: Extracting downloaded zip file through code?
jQuery in Action, 3rd edition