Hi, I read a chunk of 1024*1024 bytes from a compressed binary file (ZIP) to a string Then I compress that string using CompressLZWMBS (OK, it doesnt make much sense to compress a ZIP...but I was curious...)
The resulting (compressed) string is about 40% bigger than the input string : the uncompressed input string length is: 1.048.576 and the resulting compressed string lenght is: 1.488.375 I understand the LZW can't compress data that is already compressed and may add a small overhead - but why does it add 40% to the result? (I am writing a tool that sends files over the internet...and I use CompressLZWMBS to compress the data before sending...but if a user should send a ZIP then it would be very counterproductive to use CompressLZWMBS) So is there a way to avoid this ? Or maybe some other compression algorithm would be better ? I use Windows XP and Plugins 11.3 Heinz _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
