🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #119

Re: ZlibEx and gzip

#119
From: Peter Haas
Date: Tue, 20 Jan 2004 16:06
25 lines
2025 bytes
Hi Christopher,

Christopher Anglin wrote in <400452a1$1@newsgroups.borland.com>:
> My goal is this: I want to take a gzip file and read though it decompressing
> 'on the fly' instead of extracting to the hard drive, reading and then
> deleting the file.  The files I work with are 1 - 3 GB files and I think I
> will save a lot of time if I can skip the extraction to the hard drive.

Try my zlib wrapper: http://jediplus.pjh2.de/download/zlibs.zip
There are classes to compress or decompress gzip streams.

You can not use ZLibEx or the original ZLib.pas, because gzip use a
incomplete zlib stream, you need to call the zlib functions with a
special parameter.

I don't have test the classes with very large files. Borland's stream
classes are designed for maximal 2 GB at least until Delphi 5. Maybe we
need to extend the classes for using the newer, overloaded methods for
streams larger than 2 GB. Please mail me, if there are problems with the
file size.

Bye Peter.
-- 
JEDI+ API, the active JEDI Header Conversions Project:
http://jediplus.pjh2.de
Technical Details
Message-ID: <400d54cf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400452a1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,11315210d284632f
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-20 08:40:50 PST
From: Peter Haas <newsgroupfeedback@pjh2.de>
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: ZlibEx and gzip
Date: Tue, 20 Jan 2004 17:06:32 +0100
Reply-To: newsgroupfeedback@pjh2.de
References: <400452a1$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 Deutsch (Standard)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Hamster/2.0.0.0
NNTP-Posting-Host: 62.157.76.64
Message-ID: <400d54cf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074615503 62.157.76.64 (20 Jan 2004 08:18:23 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail