File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes need help with zip extraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

need help with zip extraction

Moieen Khatri
Ranch Hand

Joined: Nov 27, 2007
Posts: 144

Can someone please help with the below issue.

I cannot extract(unzip) the zip file content using the below code:

The above zipFileExtractor() method takes 3 paramters(source folder,destination folder,zip file name),I have placed the above zip file in the source folder.

The method which is called is given below:

When I run the main method I get null value in the below variable:

Can someone please help.


Moieen Khatri
Ranch Hand

Joined: Nov 27, 2007
Posts: 144
I just noticed that my code doesnt work for files with extension,however if the file has the extension the code works fine.

Is there any workaround for this?I need the code to work for files with the extension .xml.gz,,.zip

Please can some help with this?

Many Thanks in advance!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39535
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.

Ping & DNS - updated with new look and Ping home screen widget
I agree. Here's the link:
subject: need help with zip extraction
Similar Threads
need help with zip decompression
UnZIPPing Exception
Problem unzipping with ZipInputStream, containing filename with Swedish characters
Problem in unzipping a folder using API