Fog Creek Software
Discussion Board




Winzip & WinRar API


I'm looking for an API which supports
Winzip and Winrar compression.

Is there any 3rd party library or open source package
which can does the job

feature I'm looking at are :

o Compression
o Decompression
o Password protection

Thanks in advance for your inputs!

Fairlight
Friday, August 06, 2004

The info-zip package supports the zip formats, and does so very solidly.

I have no idea about RAR format, though - isn't that limited to a single vendor right now?

Chris Tavares
Friday, August 06, 2004

Winzip and WinRar are the names of specific programs, not APIs.

The zip API is a well established standard and easily available.

Rar however, may be be proprietary.

OJ bin Laden
Friday, August 06, 2004

RAR is proprietary. I think the RAR download contains a decompression library but obvoiusly they're not going to let you use their compression algorithm.

If you want something better than plain zip you should probably use gzip or bzip2. I heard that .NET Framework 2.0 will contain a zip library with zip & gzip but you can use #ziplib right now:
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx

Chris Nahr
Saturday, August 07, 2004

The J# libraries contain zip support similar to what's available in Java.  Here's a link discussing the use of these libraries:

http://msdn.microsoft.com/msdnmag/issues/03/06/ZipCompression/default.aspx

hoover
Saturday, August 07, 2004

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

7-Zip offers decompression in a few popular formats, including their own custom 7z form.

I agree with the others that you probably won't find a SDK for RAR compression without some sort of licensing agreement. Perhaps calling the command line version of RAR from within your application might be a stop gap solution ?

deja-vu
Saturday, August 07, 2004

http://www.win-rar.com/index.php?lang=&aid=knowl&kb_category_id=&kb_article_id=63&kb=1

Is there an API or compression library available for RAR?


Sorry, but as of now we do not really have such compression library.
RAR source code is not prepared for use in other programs as a library, there is no API available.

Maybe eventually we will have one, but as of now we are unfortunately unable to help you.

RAR decompression library (unrar.dll) and unrar.exe can be redistributed freely, without any additional fees.

UnRAR source code also can be redistributed freely, but the original license.txt must be included to source distribution.

You can download both here.

===

Amazing what Google can do.
http://www.google.com/search?q=rar+api

www.MarkTAW.com
Saturday, August 07, 2004

*  Recent Topics

*  Fog Creek Home