C# wrapper for 7z.dll (x86 and x64 included)
Every single star makes maintainer happy! ⭐
Install-Package SevenZipExtractor
using (ArchiveFile archiveFile = new ArchiveFile(@"Archive.ARJ"))
{
archiveFile.Extract("Output"); // extract all
}
using (ArchiveFile archiveFile = new ArchiveFile(@"Archive.ARJ"))
{
foreach (Entry entry in archiveFile.Entries)
{
Console.WriteLine(entry.FileName);
// extract to file
entry.Extract(entry.FileName);
// extract to stream
MemoryStream memoryStream = new MemoryStream();
entry.Extract(memoryStream);
}
}
using (ArchiveFile archiveFile = new ArchiveFile(@"c:\random-archive"))
{
archiveFile.Extract("Output");
}
WebRequest request = WebRequest.Create ("http://www.contoso.com/file.aspx?id=12345");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using (ArchiveFile archiveFile = new ArchiveFile(response.GetResponseStream())
{
archiveFile.Extract("Output");
}
7z.dll (x86 and x64) will be added to your BIN folder automatically.
1.0.17 / 2022.04.08
1.0.16 / 2021.01.17
SquashFS
(Thanks mmoosstt)bin
folder (Thanks CupSunshine)1.0.15 / 2020.01.14
1.0.14