Unzipping the content of a file
<p>I have an application where Service A will provide a zipped data to Service B. And service B needs to unzip it.</p>

<p>Service A has an exposes method getStream and it gives ByteArrayInputStream as output and the data init is zipped data. </p>

<p>However passing that to GzipInputStream gives Not in Gzip format exception.</p>

<pre><code>InputStream ins = method.getInputStream();
GZIPInputStream gis = new GZIPInputStream(ins);
</code></pre>

<p>This gives an exception. When the file is dumped in Service A the data is zipped. So getInputStream gives the zipped data.</p>

<p>How to process it ans pass it to the GzipInputStream?</p>

<p>Regards<br>
Dheeraj Joshi </p>
