Read Zip file content without extracting in java
<p>I have byte[] zipFileAsByteArray </p>

<pre><code>This zip file has rootDir --|
                            | --- Folder1 - first.txt
                            | --- Folder2 - second.txt  
                            | --- PictureFolder - image.png  
</code></pre>

<p>What I need is to get two txt files and read them, without saving any files on disk. Just do it in memory.</p>

<p>I tried something like this:</p>

<pre><code>ByteArrayInputStream bis = new ByteArrayInputStream(processZip);
ZipInputStream zis = new ZipInputStream(bis);
</code></pre>

<p>Also I will need to have separate method go get picture. Something like this:</p>

<pre><code>public byte[]image getImage(byte[] zipContent);
</code></pre>

<p><strong>Can someone help me with idea or good example how to do that ?</strong></p>