Is there a way to find out the size of the original file which is inside a GZIP file in java?
As in, I have a file a.txt of 15 MB which has been GZipped to a.gz of s
GZIP doesn't let you know about the size of the contents in advance. These are the ways of managing it that I can think of depending on your requirements: