Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compression component

I am looking for a compression component that supports Delphi2010 and allow me to do the basic operations of:

  • create .zip archives
  • extract from .zip archives
  • delete .zip archives

I also need the component to be free for commercial usage and possibly does not use/rely on a DLL (I don't mind if it does).

So far I have looked into ZipForge, FlexCompress, KaZip and UnRAR, but I found out that I needed to purchase a license to commercially use ZipForge and FlexCompress. When it came to KaZip, there were errors in the code so I was unsuccessful in terms of installing the component. Whereas UnRAR was just that; it only decompressed .zip or .rar archives.

So In summary, I need a compression component that:

  • is free for commercial use
  • supports Delphi 2010
  • performs the above stated operations
  • does not use DLLs (however, I do not mind)
like image 283
ple103 Avatar asked Sep 16 '11 08:09

ple103


People also ask

What are the 2 types of compression?

There are two types of compression: lossless and lossy. Lossless compression algorithms reduce the size of files without losing any information in the file, which means that we can reconstruct the original data from the compressed file.

What is a compression in operating system?

Data compression is a reduction in the number of bits needed to represent data. Compressing data can save storage capacity, speed up file transfer, and decrease costs for storage hardware and network bandwidth.

Why is compression needed?

The main advantages of compression are reductions in storage hardware, data transmission time, and communication bandwidth. This can result in significant cost savings. Compressed files require significantly less storage capacity than uncompressed files, meaning a significant decrease in expenses for storage.

What are the major types of compression?

Compression techniques fall into two classes: lossless and lossy. Both are very common in use: an example of lossless compression is ZIP archive files and an example of lossy compression is JPEG image files.


2 Answers

Abbrevia will serve your purposes nicely.

like image 102
LachlanG Avatar answered Oct 19 '22 07:10

LachlanG


The JCL has a nice set of compression classes for both files (ie common archive formats) and for in memory stuff (TStreams) in jclCompression unit. For some formats it requires DLL, it uses 7zip one. But it is open source and free (MPL / LGPL).

like image 3
ain Avatar answered Oct 19 '22 06:10

ain