https://github.com/ccy/delphi-zip
Delphi System.zip patch with ZIP64 and LZMA supports
https://github.com/ccy/delphi-zip
component delphi zip
Last synced: 5 months ago
JSON representation
Delphi System.zip patch with ZIP64 and LZMA supports
- Host: GitHub
- URL: https://github.com/ccy/delphi-zip
- Owner: ccy
- Created: 2014-07-10T10:30:42.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-09-19T02:40:19.000Z (9 months ago)
- Last Synced: 2025-09-19T04:25:10.752Z (9 months ago)
- Topics: component, delphi, zip
- Language: Pascal
- Size: 1000 KB
- Stars: 92
- Watchers: 12
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: readme.adoc
Awesome Lists containing this project
README
= Delphi Zip
:toc:
= Introduction
https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.Zip.TZipFile[TZipFile] class in RAD Studio does not support
- https://www.7-zip.org/sdk.html[LZMA] compression method
- Zip64 archive format
This library add these features to existing `System.Zip.pas` via new unit `System.Zip2.pas`. User can easily switch between `System.Zip.pas` and `System.Zip2.pas` in source code.
= Source code
The repository organizes source code for various RAD Studio release using https://github.com/ccy/delphi-zip/branches[branches] since https://github.com/ccy/delphi-zip/tree/XE4[RAD Studio XE4].
== RAD Studio 11 Alexandria
- https://blogs.embarcadero.com/announcing-the-availability-of-rad-studio-11-alexandria/[RAD Studio 11 Alexandria] support Zip64. `Zip64` artifacts has replaced by RAD Studio 11 release.
= Usage
To enable `Zip64` support, replace `System.Zip.pas` to `System.Zip2.pas`.
To enable *LZMA* compression method, Add `System.Zip.LZMA` to RAD Studio project.
= Example
To extract LZMA zip archive:
[source,pascal]
----
uses System.Zip2, System.Zip.LZMA;
begin
TZipFile.ExtractZipFile('c:\lzma.zip', 'c:\');
end.
----