Solved

ZLib and the file generated

Posted on 2006-07-24
7
465 Views
Last Modified: 2010-04-04
Hello,

I've tried to generate .gz files with the Zlib library given in BDS 2006 and with the Zlib Library 1.2.3 found online, and they don't generate valid .gz files (WinRAR or readgzopen() in PHP, don't want to open generated files).

Someone can help me?
0
Comment
Question by:KCTeam
  • 3
  • 2
  • 2
7 Comments
 
LVL 28

Accepted Solution

by:
ciuly earned 500 total points
Comment Utility
0
 

Author Comment

by:KCTeam
Comment Utility
Someone have a solution? :D
0
 
LVL 28

Expert Comment

by:ciuly
Comment Utility
well, I never used gzip but I found this: http://www.sph.sc.edu/comd/rorden/gz.html . they have the app with source and some links that might be helpfull.
there was also some delphi gzip library but all links are broken.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 14

Expert Comment

by:Hamidreza Vakilian
Comment Utility
FileTools v.2.3  
By J. Rathlev, IEAP. FileTools is a collection of several objects to copy, pack files (gz, Zip and Zip64 format are supported) and unpack files (only gz format) using a separate thread. For packing and unpacking the zlib-routines from Jean-Loup Gailly and Mark Adler are used.  
 
HRV
0
 
LVL 14

Expert Comment

by:Hamidreza Vakilian
Comment Utility
0
 

Author Comment

by:KCTeam
Comment Utility
To Programmer-X : I have to pack and unpack GZip
To ciuly : I have found this page too, dead link doesn't help me ^^
0
 

Author Comment

by:KCTeam
Comment Utility
I have found the answer alone ^^

I have used the Abrrevia Library!

program Test;

{$APPTYPE CONSOLE}

uses
  SysUtils, Classes, AbGZTyp;

var
  gzFile: TAbGzipArchive;
begin
  //Pack
  gzFile := TAbGzipArchive.Create('test.txt.gz', fmCreate);
  gzFile.load();
  gzFile.AddFiles('test.txt',0);
  gzFile.Save;
  gzFile.Destroy;

  //Unpack
  gzFile := TAbGzipArchive.Create('test.txt.gz', fmOpenRead);
  gzFile.Load();
  gzFile.ExtractAt(0, 'test.unpack.txt'));
  gzFile.Destroy;
  Readln;
end.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now