Recent

Author Topic: Read data compressed with D2010 ZLib  (Read 2599 times)

Fodox

  • New Member
  • *
  • Posts: 13
Read data compressed with D2010 ZLib
« on: August 28, 2014, 04:32:51 pm »
Hello,
I am porting to Lazarus (1.2.2, win32) an application written in Delphi 2010. Some data was compressed using zlib.pas internal unit (zlib version 1.2.3). Is there a possibility to continue read and write data maintaining the compatibility with old archives?

I see paszlib.pas use zlib version 1.2, zlib.pas need an external DLL, zstream.pas use zlib version 1.1.2; I did some test but I had only compiler error.

Thanks
  Fodox

Fodox

  • New Member
  • *
  • Posts: 13
Re: Read data compressed with D2010 ZLib
« Reply #1 on: August 29, 2014, 01:52:06 pm »
I think the key problem is that Lazarus zlib units needs the original size to decompress data, Delphi Zlib can deflate without. I am trying to porting that portion of code without success.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11384
  • FPC developer.
Re: Read data compressed with D2010 ZLib
« Reply #2 on: August 29, 2014, 04:44:27 pm »
Probably there is some record before it. Either gzip record or just the size. That could be emulated if necessary.

 

TinyPortal © 2005-2018