Delphi DLL
Delphi DLL
UnGzip .tgz to get a .tar
See more Tar Archive Examples
A .tgz is simply a TAR archive compressed using GZip. It is also commonly referred to as a .tar.gz. Chilkat GZip can be used to ungzip to get an uncompressed .tar.Chilkat Delphi DLL Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Gzip;
...
procedure TForm1.Button1Click(Sender: TObject);
var
success: Boolean;
gzip: HCkGzip;
begin
success := False;
gzip := CkGzip_Create();
success := CkGzip_UncompressFile(gzip,'qa_data/tar/test.tgz','qa_output/test.tar');
if (success <> True) then
begin
Memo1.Lines.Add(CkGzip__lastErrorText(gzip));
end
else
begin
Memo1.Lines.Add('success.');
end;
CkGzip_Dispose(gzip);
end;