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/f1496548544475x140387106221169240/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-boun...@lists.runrev.com on behalf of use-livecode@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/f1496548544475x140387106221169240/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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode