Re: [bds 2006] Decompress .gz files with zlib unit?



Richard A. DeVenezia wrote:
Haven't used Delphi in ages, starting back up with bds 2006.

I have a bunch of .gz files that need to be decompressed (on the fly) before
I can use the data inside them.

The files are not corrupt -- WinZip was unable decompress them.

Have I missed something?
Do I need a different decompression library ?

As far as i know, ZLib uses the same method as GZip to compress the data, but has different headers. Didn't use ZLib myself to unzip Gzips, but i'd expect you have to find out the header formats, load the gzip to a stream, and replace the header.

.



Relevant Pages

  • Re: Rumor Has it... [Jerry]
    ... I never called Matt or Richard. ... or begin posts with my name in the header to get my attention. ... To speak in public anyway. ...
    (rec.pets.dogs.behavior)
  • Re: Deleting Inserted Projects
    ... If you double-click the header, can you deselect the Link to project option under the Advanced tab? ... "Richard W" wrote in message ... of sub projects to form a consolidated project. ... delete any of the subprojects from the master project. ...
    (microsoft.public.project)
  • Re: CHECKSUM CHALLENGE - (US$ 100)
    ... Noah Roberts wrote: ... > Actually Richard, if you look at the header to this guy's messages you ... K&R answers, C books, etc: http://users.powernet.co.uk/eton ...
    (comp.programming)
  • Re: *** UK.REC.GARDENING NEEDS YOUR HELP PLEASE! ***
    ... look at the NNTP-Posting-Host: header. ... Richard. ... "Usenet is like a herd of performing elephants with diarrhea -- ...
    (uk.rec.gardening)
  • Re: Address when replying in mail.app
    ... nospam@xxxxxxxxxxxxx (Richard E Maine) wrote: ... regardless of what mail.app sees in the To header. ... I interpreted OP as having a number of email accounts operating in ...
    (comp.sys.mac.apps)