Solved

Compressing

Posted on 2000-04-20
4
232 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

762 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