Connecting Tech Pros Worldwide Forums | Help | Site Map

about winzip

Newbie
 
Join Date: Sep 2008
Posts: 1
#1: Sep 25 '08
i am working on winzip in c#.net can anyone help me out with the coding..

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Sep 25 '08

re: about winzip


We are not here to do your work for you.
.NET has compression libraries built in. I would start by looking at them.
Expert
 
Join Date: Sep 2008
Location: USA
Posts: 188
#3: Sep 25 '08

re: about winzip


C# and the BCL do not support zip (as in WinZip) compression out of the box from 1.0 to 3.5. (They plan to.) If you are doing your own compression and don't care about the protocol, you can use the GZipStream libraries. If you want to decompress files compressed with WinZip, you will have to:
- write your own library,
- use a third party library,
- or call the winZip command line from your C# app.

Read about it here:
BCL Blog - Compression

On that page you will find links to creating a zip reader writer using the J# libraries (which I have done and is fairly easy). I see now there is a new link to getting GZipStream to produce zip files readable by WinZip...I have not tried that.

Otherwise, this is why the ICSharp Zip Library is very popular.

A targeted search on "C#" "Zip Compression" will lead you to some other attempted solutions.
Reply


Similar .NET Framework bytes