This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Extracting downloaded zip file through code?
It's not a secret anymore!