On Mon, 5 Sep 2016, Marcos Douglas wrote:

On Mon, Sep 5, 2016 at 3:09 PM, Marcos Douglas <m...@delfire.net> wrote:
On Mon, Sep 5, 2016 at 2:50 AM, Michael Van Canneyt
<mich...@freepascal.org> wrote:
As far as I know these things can be done with all the FPC classes as well ?
The implementation in base64 unit can perfectly do everything in memory.
And ZUncompressStream can be done with TDecompressionStream ?

Well, if FPC can do the job without 3rd dependencies... I will try. Thank you.

No, I got an error:
================================
[Debugger Exception Notification]

Project project1 raised exception class 'Edecompressionerror' with message:
data error

In file '.\paszlib\src\zstream.pp' at line 302:
raise Edecompressionerror.create(zerror(err));
================================

What is the stream content ? TGZFile or simply compressed ? If it is TGZFile, then the header must be skipped before uncompressing data.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to