Re: howto create a zip programmatically

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

From: Tom Stewart (tastewar_at_newsgroups.nospam)
Date: 05/28/04


Date: Fri, 28 May 2004 08:44:04 -0400

Thanks -- I did end up there after gzip.

--
Tom
"Paweł Pawlak" <morr!s@elys!um.pl> wrote in message news:c96nj0$3vq$1@helios.domdata.com...
>
> >>>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.
>
> As an alternative you may use a dynamic link library, that is able to
> create ZIP archives. Have a look at http://www.info-zip.org/
>
> Pawel


Relevant Pages

  • Re: howto create a zip programmatically
    ... "Norm Dresner" 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
    ... "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)