Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

7z format compression [duplicate]

Possible Duplicate:
How do I create 7-Zip archives with .NET?

I'm looking for ways to do compression and decompression in 7z format via code in VB.NET and C#. Is there any library or .Net code for this purpose?

I know there are GZipStream and DeflateStream in .Net but I want 7z format for better compression ratio.

like image 402
Predator Avatar asked Jun 12 '26 13:06

Predator


1 Answers

How about LZMA SDK?

EDIT:

Thanks to dtb for mentioning

LZMA SDK contains only an implementation of the LZMA compression method, not classes for reading for writing 7z files

There is SevenZipSharp project that is open source wrapper for 7-zip to do this work.

Project Description

Managed 7-zip library written in C# that provides data (self-)extraction and compression (all 7-zip formats are supported). It wraps 7z.dll or any compatible one and makes use of LZMA SDK.

like image 79
Renatas M. Avatar answered Jun 15 '26 03:06

Renatas M.