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
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