简体   繁体   中英

Delphi - support for unzipping huge compressed gz file

I have a gz comapressed file I need to uncompress. File is approx 5.5 GB in size.

Using the accepted answer here Delphi XE 8 - how to decompress a gzip file? I get an integer overflow exception on

Strings.LoadFromStream(DecompressionStream);

Can anyone help getting this code to support >4GB gz files?

PS, to whoever closed my last question, this is not the same issue as your linked answer. This is specifically for Delphi not supporting large gz files. The code in the other question still does not work with larger than 4GB gz files. So unless you have a solution for large gz files, please leave this question open.

The address range for 32-bit integers is limited to ~4GB. You should compile it using a 64-bit memory model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM