[
  {
    "Id": "193894",
    "ThreadId": "57380",
    "Html": "<p>Hi</p>\r\n<p>I wonder if there is a way to verify zip archive. I was thinking to try to list files and catch an exception but there should be a better way, right?</p>",
    "PostedDate": "2009-05-25T05:11:40-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "193921",
    "ThreadId": "57380",
    "Html": "<p>I don't know of a better way.&nbsp; ZipFile.IsZipFile() has a couple overloads that verify a zip file.&nbsp; They do what you describe - list or extract all the entries in an archive, and catch any exceptions that occur.&nbsp; If there are no exceptions, then the file is a valid bzip archive.&nbsp;</p>\r\n<p>The overload that extracts all the files will also check CRCs and so on.&nbsp; It extracts them into a null stream, so nothing is written to disk or to memory - the data is just discarded.&nbsp;</p>\r\n<p>If you have a password-protected zip file, you currently need to do this validation yourself.</p>",
    "PostedDate": "2009-05-25T08:01:25.423-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]