Solved

String Compression

Posted on 2002-05-24
5
246 Views
Last Modified: 2013-11-20
I have a client server program. I need the large data packets that flow between client and server should be compressed to reduce network IO. How in VC++ I can compress strings.
Note:I do not have to compress files.

thnx in advance
Raza
0
Comment
Question by:ahmadrazakhan
5 Comments
 
LVL 12

Accepted Solution

by:
migel earned 200 total points
ID: 7031891
Hi!
You can use ZLIB library (http://www.gzip.org/zlib/) to compress/decompress memory blocks.
0
 
LVL 22

Expert Comment

by:ambience
ID: 7040975
This depends upon the type of data, you can use RLE compression that is straight forward to implement (this gets satisfactory results wih textual data),  huffman encoding can also be used.

If you donot care about compressing it yourself then use some third party libraries, one good commonly used one is ZLIB as mentioned above.

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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