Hi Everyone,

I am facing some issues with GZIPInputStream. I am trying to connect a FileInputStream thru it, but some weird exception is coming my way... Posting the code below,

import java.io.FileInputStream;
import java.util.zip.GZIPInputStream;

public class GZipTester {
	public static void main(String args[])
		String file = "C://Testing.tar.gz";
		GZIPInputStream gzip = new GZIPInputStream(new FileInputStream(file));
                catch(Exception e)
The tar.gz file exists at it's place, so no issue with that. When I try to run this, I get a big exception,

java.io.IOException: Not in GZIP format
	at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:131)
	at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
	at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
	at GZipTester.main(GZipTester.java:10)
Can someone please help me out in this? I have spent almost all my day digging into this issue. But no success.

Any help would be appreciated!

Thanks much,