Chris,

BIG guess here...but from my earlier days of messing with compression techniques...I would suspect that the problem may be a fixed length variable in the compression alg. Once you have so many chars in a row that exceed this limit, it goes haywire. While waiting for the real fix, how about some experiments to find out what the limit is...let's just say here that it's 64KB...then break your files up into pieces. After decompressing, reassemble them?

It ain't pretty, but maybe it'll patch you for now.

Best Regards,

Tim Ponn


Chris Sheffield wrote:


That'd work great if I new beforehand what I was compressing.  :-)  Most of
my files are wav and text files, and I don't really know exactly what is
being compressed before I compress it.  I suppose I could try reading the
data first to check it, but I'm not sure how I would check for multiple
occurrences of the same character in a row.

Chris Sheffield
Software Development
Read Naturally
[EMAIL PROTECTED]


-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray Sent: Wednesday, September 10, 2003 3:13 PM To: [EMAIL PROTECTED] Subject: RE: problems decompressing files

Chris,

I'm not sure what you're storing that needs to be compressed, but if it
was a string like:

10011101011111111111111111111111111001

Where there are too many "1"s in a row, couldn't you do something like:

replace "0" with "0," in tString
replace "1" with "1," in tString

giving you


1,0,0,1,1,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0, 0,1,

That you could then compress and decompress? Then to get back your
"original", you could:

replace "," with "" in tString

to get you back to:

10011101011111111111111111111111111001

Just a thought,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/






_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution






_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to