Posted By: alwaysmc2 | Aug 2nd, 2008 @ 7:37 PM
page 1 of 1
Comments: 16 | Views: 3600
alwaysmc2
alwaysmc2
It's not stupid; It's advanced!
I've looked all over and haven't found an easy-to-use C# library that allows the decompression of 7-zip archives.  I want to be able to enumerate the contents of a 7-zip archive and extract single files from it.  I don't even care about the library's code, and would actually prefer a DLL.

Anyone know if what I am describing exists?
littleguru
littleguru
<3 Seattle

Isn't 7-zip open source? You could look into how they did it and try to rebuild (only for personal usage of course).

littleguru
littleguru
<3 Seattle
Have you tried the SDK that you can download from the 7zip website. It has also samples for C#.
littleguru
littleguru
<3 Seattle
That's not 7zip... so i guess it's not what alwaysmc2 wants.
littleguru
littleguru
<3 Seattle
You were just in a search for a ZIP library? That comes already with .NET 3.5 build-in btw. I thought you wanted something that is 7-zip specific.
Maddus Mattus
Maddus Mattus
Do, or do not. There is no try. - Yoda
I like the ziplib better then the built in zip capabilities. But that's just me.

And yes I knew it didnt support 7-Zip, but I was in a bit of a hurry so I thought I would just dump the link and let him decide for himself if it was usefull or not Smiley
W3bbo
W3bbo
The Master of Baiters
Oh, damnit, I hate you.

I spent the past few weeks wrestling with putting together my own LZMA-based compression library by using SharpZipLib's Tarballs and then running it through 7Zip's LzmaAlone library.

....but then I notice your library hooks into the COM interfaces in the 7zip library rather than implementing the 7zip format entirely in managed code. That's the killer for me. I'm looking for a totally managed solution.

(I'd like to mention that the C# LzmaAlone builds outperform the C++ version by about 2 seconds when compressing 60MB)
Emm, sorry Smiley

You see, if you make a totally managed implementation, it will be as hard as for Igor Pavlov, and he said on SourceForge, he couldn't even imagine a C# 7-zip. We could collaborate and make it, i guess, but what about other formats embedded in 7-zip, such as zip, cab, rar, deb, etc.? It is too much to do, nobody will work on it for free.
W3bbo
W3bbo
The Master of Baiters
Go for the core userbase: developers wanting the best compression they can get. They'll be wanting 7zip with LZMA, nothing else.

Depending on how things go with my project, I may look into helping you out.
Hi,

I am looking for some one who can help me in converting 7Zip  to C#. I have ported all the code from j7zip(java port of 7Zip) to C#. It successfully compiled but i am getting some runtime errors. Kindly help me in fixing those errors.I will send you the code if you are interested to work with me.

Thanks
7zip#
W3bbo
W3bbo
The Master of Baiters
You'd be better off asking your questions on the official 7Zip forums, I don't have the free time I thought I'd have to work on porting 7Zip over. As I mentioned earlier, my ersatz Tarball-LZMA approach works for me right now.

Any runtime errors would deal with the implementation of the algorithm and system, more than just simple porting issues, and that's going to be very difficult to investigate since you need to maintain 100% compatibility with the 7Zip format and LZMA algorithm.
page 1 of 1
Comments: 16 | Views: 3600
Microsoft Communities