Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ZLIB.DLL: Decompression blues.

Status
Not open for further replies.

rpk2006

Technical User
Apr 24, 2002
225
IN
I have a Multi-line Text Box on my form where a user will
type his message or text. I want to compress this text.
The text may be of length more than 65536 and sometimes
may be of 1 MB.
For checking compression and decompression, I have placed
two command buttons on the form. One is for compression
and the second for decompression.

When I click the "Compress" button, the compression goes
on fine, but when I click the "Decompress" button, the
original text is reduced to half or sometimes less than half. It does not give 100% original data.

Does the "CompressString" function of ZLIB is for small strings? How to compress long text of more than 1 MB in the text box itself?

...........
Rohit. ---------------------------------
Securing a computer system has traditionally been a battle of wits: the penetrator tries to find the holes, and the designer tries to close them. � M.Gosser
 
Your limited to 1 MB of data. That's just the way it is.
 
You could try spanning the compression. break the text box into 1 meg spans.

-Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top