Reputation: 19185
I'm packing ZIP
files using Zip4j
. Sometimes, the created ZIP
file seems to be (uploaded) corrupted via FTP
so I would like to validate it.
The code snippets from here don't work because they cause an exception on password protected archives by default since the default Java
ZipFile
doesn't support password protections.
Upvotes: 0
Views: 301
Reputation: 11835
How about the usual hash validation?
DigestUtils
from commons-digest may be used)Upvotes: 1