Android & URLEncode & libUrlDownloadToFile

Alex Tweedly alex at tweedly.net
Wed Aug 1 19:01:50 EDT 2012


[sorry if this finishes up being duplicated]

Here's a tiny LC file to download a JPEG (fixed file name to make it as 
simple as possible) which should get you further ...

> <?lc
>
> start using stack "common.livecode"
>
> put URL("binfile:./family/threeofakind/2006_0314Image0021.JPG") into 
> tData
>
> put header  "Content-Type: image/jpeg"
> put header "Content-Length: " & the number of bytes in tData
>
> put tData
Remember that     put header ....    must come before any other output.

-- Alex.

On 30/07/2012 22:50, Nicolas Cueto wrote:
> Thanks, Alex.
>
> A question...
>
>> and write a simple LC script to check for "ID / PWD"  -
> I understand how to write the script, but not how to phrase the
> results of the "if" conditional. What commands would the LC script
> execute if the pwd/id are correct, so as to let the jpg file on the
> server be downloaded by the stack?
>
> Sorry.
>
> -- 
> Nicolas Cueto
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list