Forums Register Login

size of a ZipEntry

+Pie Number of slices to send: Send
All,

I ran into this issue that the size (compressed, uncompressed) etc.. are not getting updated after the data has been written and the ZipEntry is closed in the ZipOutputStream (those fields should be updated automatically). That is, upon reading the entire zip file back it returns -1 (for getSize(), etc...) always for each file written. Any tips/help on this?

+Pie Number of slices to send: Send
This might sound silly, but do you flush the stream?
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1753 times.
Similar Threads
problem using getSize on classes in jar file
Compressed v Uncompressed byte reading
ZipException - invalid entry compressed size
Converting Zip file to bytearray and vice versa
Problem in copying files for one jar file to the other
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:14:09.