Solved

Compressing

Posted on 2000-04-20
4
233 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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