Opening a zipped file in RunRev?
Klaus Major
klaus at major-k.de
Wed Mar 3 11:14:58 EST 2004
Hi Jim,
> ...
> Brian,
>
> Thank you for this. I was successful with: put compress(field 1) into
> url "file:xxx"
>
> But I was not able to retrieve the compressed data from the file xxx,
> that is, put decompress(url "file:xxx") into field 1, produced a
> "string is not compressed data" error.
>
> While I was at least able to compress field data, I was not able to
> compress a stack. As you may have seen, Chipp Walters says this is not
> possible to zip or unzip a stack. (I assume he also means that you
> cannot compress a stack.) If you try, you get an error: "Source is
> not a container." I ran across something to this effect in the Docs
> yesterday, but I can't relocate it today.
>
> But I am still puzzled as to how you decompress a stored file. I can
> compress a field but not decompress the file--something like an empty
> can of coke.
>
> Jim
Have you tried "binfile:"?
put compress(field 1) into url "binfile:xxx"
put decompress(url "binfile:xxx") into field 1
Works here for me...
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list