mysterious Byte increasment with compress - decompress

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Nov 27 04:02:40 EST 2008


Bonjour Tiemo,

A file stack is a binary file:
put compress(url ("binfile:" & it)) into url ("binfile:" & it & ".gz")

Le 27 nov. 08 à 10:00, Tiemo Hollmann TB a écrit :

> when compressing and decompressing any files with the following  
> statements
> (assuming that "it" has the right values)
>
> put compress(URL ("file:" & it)) into URL ("binfile:" & it & ".gz")
>
> put decompress(URL ("binfile:" & it)) into URL ("file:" & item 1 to  
> -2 of
> it)
>
> the resulting decompressed file has another number of Bytes as the  
> original
> file and in case of a rev stack it is corrupted, when trying to  
> open it.
>
> What am I doing wrong? Probably something with the file - binfile -  
> file,
> but I don't see it

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list