Extract . zip file

Asked

Viewed 488 times

0

I have a file that is zipped by the 7-Zip, at the time of unzipping by the 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 happens the following Exception:

The archive entry was compressed using an unsupported compression method.

How else could I unzip this file.

  • 1

    http://stackoverflow.com/questions/836736/unzip-files-programmatically-in-net

1 answer

2


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

Try to use the library Sevenzipsharp, available on nuget.

  • 1

    Thank you very much worked using this library. I did not know.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.