Extract .zip file

0

I have a file that is zipped by 7-Zip, at the time of unpacking by C #, using the following code:

 try
            {
                ZipFile.ExtractToDirectory(caminho + "\" + arquivo, arquivo);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }

Only this way does not decompress and the following Exception happens:

The archive entry was compressed using an unsupported compression method.

How else could I unzip this file.

    
asked by anonymous 18.04.2016 / 15:29

1 answer

2

7zip can use compression algorithms different from those used by zip.

Try using the SevenZipSharp library, available at nuget .

    
18.04.2016 / 15:35