Solved

String Compression

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
only14 challenge 19 84
Window placement 17 95
Capture logon name 13 106
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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