How to decompress a byte Array in Java
<p>can anybody tell me how to decompress a byte array?. here is my code i been trying it for ages and it is giving me Data format Exception error.</p>

<pre><code>byte bArray[] = new byte[tSizeOfTile];
input.read(bArray, offset, limit);

byte[] unComp = new byte[bArray.length + 100];

Inflater inflate = new Inflater();
inflate.setInput(bArray);
inflate.inflate(unComp, offset, bArray.length + 100);
inflate.end();
</code></pre>

<p>thanks in advance</p>
