Solved

ZLib and the file generated

Posted on 2006-07-24
7
467 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:
2266180 earned 500 total points
ID: 17167473
0
 

Author Comment

by:KCTeam
ID: 17167672
Someone have a solution? :D
0
 
LVL 28

Expert Comment

by:2266180
ID: 17167791
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Expert Comment

by:Hamidreza Vakilian
ID: 17167830
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
ID: 17167847
0
 

Author Comment

by:KCTeam
ID: 17168067
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
ID: 17168381
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

929 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