PDA

View Full Version : Compressing/decompressing streams



Brainer
26-09-2007, 01:29 PM
System: Windows XP SP2 (Pentium D 805, GeForce 7600 GS, 2GB RAM)
Compiler/IDE: Delphi 2007
Libraries/API: None

Ya minna. :D

I've got a problem. I'd like to compress the stream data somehow. I've stored a record in a TFileStream object. Can you give me some hints/snippets? :)

Greetings!

jdarling
26-09-2007, 04:27 PM
Take a look at DCPcrypt and TurboPower Abbrevia for stream encryption and compression libraries. Both work quite well and while they may be dated, they are (IMHO) the best libraries around.

Robert Kosek
26-09-2007, 07:23 PM
I use Zlib and Bzip. Both are excellent, but the latter gives better ratios to uncompressed data.

cairnswm
26-09-2007, 07:24 PM
If you dont mind using zlib you could use this:

http://www.swissdelphicenter.ch/torry/showcode.php?id=822

I was also able to find HKStreams:
http://topic.csdn.net/t/20020526/21/754530.html
But I have no idea how good it is.

else have alook at this list:

http://bsdg.org/resources/Delphi_Free_Components.html#Compression

Brainer
26-09-2007, 07:31 PM
Arigatou, minna. :) Those links are very useful! :)

technomage
26-09-2007, 10:25 PM
If you dont mind using zlib you could use this:
I was also able to find HKStreams:
But I have no idea how good it is.



I have used HKStreams in a commercial app, it's very good and does both compression and encryption.

I have also used zlib which again is very good :)