Am 25.08.2011 um 18:54 schrieb Heinz:

> Hi,
> 
> the uncompressed input string length is: 1.048.576
> and the resulting compressed string lenght is: 1.488.375

That's normal for LZW.

> So is there a way to avoid this ? Or maybe some other compression algorithm 
> would be better ?

Well, I suggest you send a little compression code with your data.

A header like this: 

A code so you can identify your data.
The size of this header.
A code for which compression was used (0 = none, 1 = zip, 2 = lzw)
A code for which encryption was used (0 = none)
A flags value for the future.
The original data length
The compressed and encoded length
And finally the data.


So this would give you room to expand in the future and still the ability to 
work with various options.
Like compression where your app compresses data with several ways and later 
picks the smallest result.

Greetings
Christian

-- 
See you in Frankfurt, Germany at the Real Studio Database Days

More details and registration here:
http://www.monkeybreadsoftware.de/realbasic/events/frankfurt-2011-event.shtml


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to