3

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.

Community
  • 1
  • 1
Predator
  • 1,267
  • 3
  • 17
  • 43

3 Answers3

4

Use the official SDK :)

Florian Doyon
  • 4,146
  • 1
  • 27
  • 37
4

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.

Community
  • 1
  • 1
Renatas M.
  • 11,694
  • 1
  • 43
  • 62
  • It's noteworthy that the LZMA SDK contains only an implementation of the LZMA compression method, not classes for reading for writing 7z files. – dtb Jun 28 '11 at 11:40
3

I belive 7zip provides an sdk which has a c# project in it.

http://www.7-zip.org/sdk.html

Alex Mendez
  • 5,120
  • 1
  • 25
  • 23