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;
end;
end;
(...)But, with gzip, without sucess. :(
Exists an 'TGZCompressionStream'?
Thanks!
ps. See: http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression
