1

There is no problem with .zip file but only 7z.

 FileStream fs = File.OpenRead(archiveFilenameIn);
            zf = new ZipFile(fs); // This is where we encountered an error

1 Answers1

5

The ZipFile class only handles .zip files, not .7z files.

In fact, SharpZipLib does not support .7z files at all.

A "central directory" is a list of all the files present in a zip-file and where they're located, used to speedily extract one file or get a file listing without reading the whole file.

Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
  • Hi Lasse, thank you for answering my question. Would you know if there are good tools (free) out there that I could use? Mainly, what I need to achieve is to unzip this 7z file. My last resort is to use the 7z.exe but I don't want that. Really appreciate it. Thanks in advance. – Edgar I. Ursua Jr. Apr 25 '16 at 06:42
  • No, unfortunately I don't know which libraries or whatnot would work for this. – Lasse V. Karlsen Apr 25 '16 at 06:56