Solved

Compressing

Posted on 2000-04-20
4
228 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Following...

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

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…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

17 Experts available now in Live!

Get 1:1 Help Now