AW: AW: AW: need help for decompress URL
dave.cragg at lacscentre.co.uk
Fri Nov 28 05:41:04 CST 2008
On 28 Nov 2008, at 11:06, Tiemo Hollmann TB wrote:
> Yes, decompressing the same lokal file with:
> put decompress(URL ("binfile:" & it)) into URL ("binfile:" & tFile)
> works like a charme.
> But uploading this file to the internet and doing
> load pURL
> put decompress(url pUrl) into tData
> where pUrl is something like: "http://www.mydomain/myBinFile.gz"
> I get this "not compressed data". So it must something be with the URL
> syntax, but I don't see it
"load url" works in the background and you need to use a callback
message to get the data. Something like this:
load URL pUrl with message "loaded"
on loaded pUrl, pStatus
if pStatus is "cached" then
put decompress(url pUrl) into url (whatever)
answer "download failed" -- or other error handling
unload url pUrl -- assuming y0u no longer need it
More information about the use-livecode