[fpc-pascal] Can I open XZ compressed text file on the fly?

Gabor Boros gaborboros at yahoo.com
Fri Oct 28 08:33:51 CEST 2016


2016. 10. 27. 4:29 keltezéssel, Graeme Geldenhuys írta:
> On 2016-10-26 14:58, Gabor Boros wrote:
>> Can I open it
>> without decompress it to the file system
>
> Yes, simply use any component that implements the LZMA/LZMA2 compression
> algorithms. You should then be able to decompress it in memory. I think
> the TurboPower Abbrevia components on SourceForge support that. There
> are probably other compression components that you can use too.
>
> Regards,
>   Graeme
>

Thank you Graeme!

I found this unit and works like a charm for me:

https://github.com/delphiunderground/xz-examples-delphi/blob/master/XZ.pas

Gabor



More information about the fpc-pascal mailing list