Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not in GZIP format error while trying to unzip the file

843833Aug 4 2003 — edited Apr 13 2008
I'm using GZIPInputStream in order to read data from zipped file.
It worked perfectly from command line. I have to execute the same code from crontab and it gave me the exception:
java.io.IOException: Not in GZIP format
It tries to check the GZIP_MAGIC number and for some reason failed.
The stack trace I'm getting points to GZIPInputStream constructor.
GZIPInputStream input = new GZIPInputStream( new FileInputStream( fileName));

Any help will be highly appreciated.
Thanks,
Arnold


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2008
Added on Aug 4 2003
12 comments
5,390 views