my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Extracting downloaded zip file through code?" Watch "Extracting downloaded zip file through code?" New topic
Author

Extracting downloaded zip file through code?

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Hi,

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....???

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

Regards,
Jignesh

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

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
Greenhorn

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.

Regards,
Ganesh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Extracting downloaded zip file through code?
 
Similar Threads
Java Puzzlers : Traps, Pitfalls, and Corner Cases by Joshua Bloch, Neal Gafter
Khalid Test Not working
How, where to start
how to take the jxam exam
web.xml couldn't detect taglib tag anymore?