need help for decompress URL

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Nov 28 05:10:02 EST 2008


Bonjour Tiemo,

Le 28 nov. 08 à 11:04, Tiemo Hollmann TB a écrit :

> Hello,
>
> 1. after downloading a rev-compressed binfile from the internet with:
>
> load url pUrl
>
> I want to decompress it with:
>
> put decompress(URL pUrl) into URL ("binfile:" & pTarget)
>
> pUrl is something like: http://www.mydomain/myBinFile.gz
>
> I get the error "decompress: string is not compressed data"
>
> What am I doing wrong? Is the loaded URL already uncompressed or  
> can't I
> decompress a loaded Url (no, Eric does it in his great tutorial)

Handle all cases with a try structure:

try
   put decompress(url pUrl) into tData
   catch tErr
end try
<do what you want with tData>

> 2. Is it possible to compress a folder with multiple files with rev? I
> didn't succeded.

In this case, use revZip commands and functions.

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