Solved

Compressing

Posted on 2000-04-20
4
229 Views
Last Modified: 2010-04-04
I want to know how I can compress an array of byte.  This is basically for files, but I want to do the code myself rather than get a component.

I can guess that a compression function will look for repetitions, or patterns of other kinds, but I don't know what the best approach to this is.

I want just the code that applies to this question - not whole projects, please.

Cheers.
0
Comment
Question by:bogieman_
4 Comments
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2736540
The best approach will depend a lot on the sort of data you are compressing.

For instance, data such as black and white images typically have long series of ones and zeros and are very suitable for simple run length encoding or group 3/4 fax compression.

Other data like english text is very suitable to dictionary based compressors like PKZip etc.

Perhaps you can tell us a little more about the sort of information you are compressing.

Cheers,

Raymond.
0
 

Expert Comment

by:johnstoned
ID: 2737756
Another good one for english text is Huffman encoding, especially as the algorithm is really easy.


Dave.
0
 
LVL 7

Accepted Solution

by:
God_Ares earned 200 total points
ID: 2746483
your awnser: ever heard of swag?? it is a porduct of the old day's. I used it a lot...
goto:
http://www.gdsoft.com/swag/downloads.html

download the reader and download ARCHIVES.SWG  there are manny examples in there. The conversion from tp7 to delphi x won't be a problem just copy and paste.

Greetz

God_Ares
0
 
LVL 15

Expert Comment

by:simonet
ID: 2860000
Following...

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

Suggested Solutions

Title # Comments Views Activity
Memory leak using records in a TVirtualStringTree 11 111
how to draw animated progressbar in Tvirtualstringtree 5 117
Help on project with Soap 10 48
Run video youtube webbrowse 10 58
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

15 Experts available now in Live!

Get 1:1 Help Now