Solved

String Compression

Posted on 2002-05-24
5
249 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference between String.subString() and String.subSequence() 6 193
sum13 challenge 24 105
Sed question 2 83
JQuery serialize and unserialize 8 77
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

813 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

13 Experts available now in Live!

Get 1:1 Help Now