compress & decompress
J. Landman Gay
jacque at hyperactivesw.com
Thu Mar 26 21:52:25 EDT 2015
On 3/26/2015 8:31 PM, Dr. Hawkins wrote:
> In my attempts to provide backups of databases, I have a sequence that
> gathers the commands and executes
>
> open file outfile for binary write
> write compress(theData )to file outfile
>
> Another routine has
>
> put url infile into theData
> switch
> case infile ends with ".gz"
> put decompress(theData) into theData
> break
> end switch
>
> I get
> stack "mcp": execution error at line 11923 (decompress: error during
> decompression), char 1
>
> On the attempt to decompress.
>
> If I instead open the file from the OSX finder, it decompresses correctly.
>
> There don't seem to be any options to affect this.
>
Is the file opened as a binary file?
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list