Re: [Lazarus] FPC, gzip and stream

2012-02-06 Thread Graeme Geldenhuys
On 4 February 2012 04:02, silvioprog wrote: How to use gzip in stream with FPC? See tiOPF v2, and units dzlib.pas and tiCompressZLib.pas in the Options directory. I use it in production code, and the tiOPF code is very well unit tested too. tiOPF is hosted on SourceForge at:

Re: [Lazarus] FPC, gzip and stream

2012-02-06 Thread michael . vancanneyt
On Sat, 4 Feb 2012, silvioprog wrote: Hello, How to use gzip in stream with FPC? The zstream unit contains the TGZFileStream class which can be used to read or write GZIp files. Michael. -- ___ Lazarus mailing list

Re: [Lazarus] FPC, gzip and stream

2012-02-06 Thread silvioprog
2012/2/6 michael.vancann...@wisa.be: [...] The zstream unit contains the TGZFileStream class which can be used to read or write GZIp files. Michael. Hello Michael. :) Hm, I noticed, but you can work directly with stream without necessarily having to create a file? -- Silvio Clécio

Re: [Lazarus] FPC, gzip and stream

2012-02-04 Thread silvioprog
2012/2/4 Darius Blaszyk dhkblas...@zeelandnet.nl: There's a gzip example program in packages/paszlib/examples Darius The examples explain how to use compression in files, I need to compress streams. :/ -- Silvio Clécio Site - silvioprog.com.br

[Lazarus] FPC, gzip and stream

2012-02-03 Thread silvioprog
Hello, How to use gzip in stream with FPC? Only deflate: (...) var S: string; VDeflate: TCompressionStream; begin VDeflate := TCompressionStream.Create(clMax, Contents); try S := 'Hello'; VDeflate.Write(Pointer(S)^, Length(S)); finally VDeflate.Free;