Message: 8 Date: Wed, 3 Mar 2004 13:58:20 -0500 From: Brian Yennie <[EMAIL PROTECTED]> Subject: Re: Opening a zipped file in RunRev? To: How to use Revolution <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; format=flowed
save this stack as compress(url "file:Macintosh HD/Desktop Folder/MyStackFile2.rev")
(This produces gibberish for the file name on my HD.)
I think you want something more like:
put compress(this stack) into url "file:Macintosh HD/Desktop Folder/MyStackFile2.rev.gz"
> And are we talking about zip files or gzip files?And then what? Are you assuming the user (the person downloading this file from the web) is running Run Rev and that the Run Rev application has the instructions for decompressing the downloaded file and then opening it? And what does that code look like? Anything like:
uncompress(url "file:??????)
Rev's compression is gzip.
To open the above, you could do:
put uncompress(url "file:Macintosh HD/Desktop Folder/MyStackFile2.rev.gz") into url "file:Macintosh HD/Desktop Folder/MyStackFile2.rev"
OR open it directly without saving to disk:
go stack uncompress(url "file:Macintosh HD/Desktop Folder/MyStackFile2.rev.gz")
HTH, Brian
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
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
