?
Solved

String Compression

Posted on 2002-05-24
5
Medium Priority
?
253 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
[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
5 Comments
 
LVL 12

Accepted Solution

by:
migel earned 800 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

777 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