android:unzip download file
<p>Hi have create from window 7 and put that in server.Now i am downloading the file from server into my SD card.but when i start to unzip it show the error,</p>

<pre><code> java.util.zip.ZipException: EOCD not found; not a Zip archive?
</code></pre>

<p>the code i have use for unzip is</p>

<pre><code>private void unzipEntry(ZipFile zipfile, ZipEntry entry,
                String outputDir) throws IOException {


            if (entry.isDirectory()) {
                createDir(new File(outputDir, entry.getName()));
                return;
            }

            File outputFile = new File(outputDir, entry.getName());
            if (!outputFile.getParentFile().exists()) {
                createDir(outputFile.getParentFile());
            }

            log("Extracting: " + entry);
            BufferedInputStream inputStream = new BufferedInputStream(
                    zipfile.getInputStream(entry));
            BufferedOutputStream outputStream = new BufferedOutputStream(
                    new FileOutputStream(outputFile));

            try {
                IOUtils.copy(inputStream, outputStream);
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } finally {
                outputStream.close();
                inputStream.close();
            }
        }
</code></pre>

<p>But when i directly import the file into ddms it work file.</p>

<p>Can anyone know how to resolve the issue then please help me out.</p>

<p>Thank you.</p>
