Author Topic: Archive testing.  (Read 456 times)

Vitali

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Archive testing.
« on: March 07, 2018, 03:50:28 PM »
Hello,

is it possible to test archive for errors before unzipping?

Chilkat

  • Administrator
  • Full Member
  • *****
  • Posts: 103
  • Karma: +6/-0
    • View Profile
Re: Archive testing.
« Reply #1 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.


Vitali

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Archive testing.
« Reply #2 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?