Results 1 to 2 of 2
  1. #1
    abhiram88 is offline Member
    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Default Unzipping a request in a servlet

    Hi All,

    I have a jsp page with a browse button and upload option to upload any file/zip folder.
    When user browses any zip file and he clicks on upload button, the call goes to the servlet.

    Now the zip folder is coming through a request object in the servlet.
    The problem is i am not able to unzip and access the files inside it.

    I want to unzip the files on the fly without saving it in the local machine.
    Please help.

    Hope i am clear in explaining my problem.

    Thanks
    Abhiram

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default

    See the classes in the java.util.zip package, and the following article shows some actual code for decompressing zip files
    Compressing and Decompressing Data Using Java

Similar Threads

  1. Extracing xml rpc Servlet Request parameters
    By ypktm in forum Java Servlet
    Replies: 1
    Last Post: 11-24-2010, 10:03 AM
  2. Unzipping a file
    By twiggy62 in forum New To Java
    Replies: 3
    Last Post: 02-20-2010, 01:33 AM
  3. Unzipping
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-03-2008, 06:17 PM
  4. Dispatching request to another Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-27-2008, 09:20 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •