Chilkat Forum

Technologies => Compression / Archives => Topic started by: Vitali on March 07, 2018, 03:50:28 PM

Title: Archive testing.
Post by: Vitali on March 07, 2018, 03:50:28 PM
Hello,

is it possible to test archive for errors before unzipping?
Title: Re: Archive testing.
Post by: Chilkat on March 19, 2018, 04:34:55 PM
The OpenZip method will perform some verification.  If it succeeds, then the zip is in good shape (certainly not entirely garbage).

If the actual compressed data for one or more entries is corrupt, then by definition, the only way to discover such corruption is by attempting to decompress.  Therefore, it's impossible to test for that sort of corruption prior to unzipping, because the test *is* to unzip.

Title: Re: Archive testing.
Post by: Vitali on April 15, 2018, 04:26:48 PM
So another question:

is it possible to unzip archive to memory (not to disk) to test archive for errors?