how to unzip an uploaded zip file using spring in java
<p>I am uploading zip folder from screen and I am sending it to contoller using MultipartFile.I am trying to extract the uploaded folder and saving that extracted folder in some specific location..I tried but I am not getting....Can anyone suggest me?
here is my code </p>

<pre><code> public  String test(
                @RequestParam("datafile") MultipartFile file
    { 

    String source =file.getOriginalFilename();

    //source variable will containthe value as "zip_Folder.zip";
            String destination = "D:\\destination";

            try {
                 ZipFile zipFile = new ZipFile(source);
                 zipFile.extractAll(destination);

            } catch (ZipException e) {
                e.printStackTrace();
            }
    }
</code></pre>