how to download an image

Matt Maier blueback09 at gmail.com
Sun Jun 4 01:59:00 EDT 2017


That gives me a 375b corrupted file. So that's progress.

On Sat, Jun 3, 2017 at 9:49 PM, Scott Rossi via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Remove the first "binfile" usage, so your code reads like this:
>
> put URL tNewImageLink into URL ("binfile:" & tNewFolder & "/" &
> tNewImageName)
>
>
> I used the following to test download to the desktop and it works as
> expected:
>
> put
> "http://s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
> 240/gri
> lled_cheese_on_plate.jpg" into theURL
> put url theURL into url ("binfile:" & specialFolderPath("desktop") &
> "/DLimage.jpg")
>
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
>
> On 6/3/17, 9:38 PM, "use-livecode on behalf of Matt Maier via
> use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of
> use-livecode at lists.runrev.com> wrote:
>
> >I'm trying to download an image to a file but it's always 0kb
> >
> >Here's an example of the URL I've got //
> >s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
> 240/grilled_ch
> >eese_on_plate.jpg
> >
> >*put* URL ("binfile:" & tNewImageLink) into URL ("binfile:" & tNewFolder &
> >"/" & tNewImageName)
> >
> >
> >*get* url tNewImageLink
> >
> >*put* it into URL ("binfile:" & tNewFolder & "/" & tNewImageName)
> >_______________________________________________
> >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
>
>
>
> _______________________________________________
> 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