Solved

String Compression

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 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