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.
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.
Use the official SDK :)
I belive 7zip provides an sdk which has a c# project in it.
http://www.7-zip.org/sdk.html
精彩评论