problems decompressing files

T. R. Ponn alptex2 at orwell.net
Wed Sep 10 18:54:01 EDT 2003


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
>csheffield at readnaturally.com
>
>
>-----Original Message-----
>From: use-revolution-admin at lists.runrev.com
>[mailto:use-revolution-admin at lists.runrev.com] On Behalf Of Ken Ray
>Sent: Wednesday, September 10, 2003 3:13 PM
>To: use-revolution at lists.runrev.com
>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: kray at sonsothunder.com
>Web Site: http://www.sonsothunder.com/ 
>
>  
>
>
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>  
>





More information about the use-livecode mailing list