Re: howto create a zip programmatically

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Barry S. Kyker (bskyker_at_bellsouth.net)
Date: 05/27/04


Date: Wed, 26 May 2004 23:59:28 -0400


"Norm Dresner" <ndrez@att.net> wrote in message
news:7i4tc.71755$hH.1296503@bgtnsc04-news.ops.worldnet.att.net...
> "Alex" <AlX@a> wrote in message
> news:OImifA0QEHA.3660@TK2MSFTNGP10.phx.gbl...
> >
> > It's just that i'm not aware if gzip is compatible with WinZip, or if
gzip
> > files are the same as Zip files.
> > zlib can create standard gzip files, so, if gzip files are compatible
with
> > WinZip then so will be the files created with zlib.
> >
> > What library did you used?
>
> I used the ZLIB library. It's available from
> http://www.gzip.org/zlib/
>
> But be aware that it's just a compression scheme. It doesn't create
> archives that contain multiple files, you'll have to do that somehow
> yourself. But a single ZLIB-created file was perfectly readable by WinZip
> and vice versa.
>
> Norm

To use the ZLIB library to create PKZIP compatible archives, you will
need the ZIP header format from PKWARE's web site at
http://www.pkzip.com/products/enterprise/white_papers/appnote.html

With the ZIP header information and ZLIB source code you should be able
to develop a compression/decompression library. I have created such a
library
for my employer that is compatible with PKZIP and WinZIP. Unfortunatly I can
not send you the source code due to company policies, but I can help if
needed.

Best regards,

Barry S. Kyker



Relevant Pages

  • Re: howto create a zip programmatically
    ... >>>>It's just that i'm not aware if gzip is compatible with WinZip, ... >>>>WinZip then so will be the files created with zlib. ... >> To use the ZLIB library to create PKZIP compatible archives, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: howto create a zip programmatically
    ... "Alex" wrote in message ... > It's just that i'm not aware if gzip is compatible with WinZip, ... > WinZip then so will be the files created with zlib. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: howto create a zip programmatically
    ... It's just that i'm not aware if gzip is compatible with WinZip, ... zlib can create standard gzip files, so, if gzip files are compatible with ... WinZip then so will be the files created with zlib. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [bds 2006] Decompress .gz files with zlib unit?
    ... > gz files are gzip compressed files. ... > is slightly different from plain zlib streams, ... constructor TZDecompressionStream.Create; ... GetMem (pBuffer, bufferSize); ...
    (comp.lang.pascal.delphi.misc)
  • Re: zlib with gzip file
    ... That does raw inflation, not gzip decoding. ... For background, a zlib ... different header - deflate data - different trailer. ...
    (comp.compression)