Java zipEntry.getSize() returns the size of the actual file and some times it returns -1 (though the file size is greater than 0).
Java API document says "Returns the uncompressed size of the entry data, or -1 if not known."
Not sure on what situation it will return -1 i.e. on what situation it will be unknown?
getSize
after reading the stream for that ZipEntry, then it will return the right size. Weird. – Ruelu