Just following up for posterity.
The livecode team figured out that setting the httpheaders to empty solved
the problem, or at least part of it.
I was setting them to connect to the API that sends the link for the image.
Now setting them to empty before trying to download the image partly works.
I dunno. Here's what I just did and it loaded the image with no
problems. All 97,183 bytes worth. Do you have write permission to the
folder you're downloading to?
on mouseUp
local tImgUrl
local tImgName
local tNewFile
constant tNewFolder="/home/mwieder/Desktop"
put
"//s3.amazo
gt; View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/how-to-download-an-image-tp4715487p4715503.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> ___
> use-livecode mailing list
&g
Is this happening in a standalone or the IDE? A standalone would need
revsecurity.dll for https.
Tom B.
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/how-to-download-an-image-tp4715487p4715503.html
Sent from the Revolution - User mailing list archive at
Yeah, I've got a list of URLs like the one in the first message
//s3.amazonaws.com/appforest_uf/f1496548544475x140387106221169
240/grilled_cheese_on_plate.jpg
I'm trying to download the images from AWS to a folder.
Previously I couldn't get "put URL into binfile" to work (0kb files) so I
tried do
On 06/04/2017 10:06 AM, Matt Maier via use-livecode wrote:
Hokay, so, apparently post is a blocking command, which is a bad idea for
multiple potentially large files. So I'm trying to use this, but it's still
downloading 1kb files.
*put* "https:" & tImgUrl into tImgUrl
*set* itemdelimiter to "/
Hokay, so, apparently post is a blocking command, which is a bad idea for
multiple potentially large files. So I'm trying to use this, but it's still
downloading 1kb files.
*put* "https:" & tImgUrl into tImgUrl
*set* itemdelimiter to "/"
*put* item -1 of tImgUrl into tImgName
*set* itemdelimite
I got bubble.is to send the base64 encoded image data instead of a link. So
just putting the base64decoded data into URL is working.
On Sun, Jun 4, 2017 at 12:41 AM, Colin Holgate via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Scott’s routine worked for me too. It’s worth checking whe
Scott’s routine worked for me too. It’s worth checking where the spaces and
returns there are in his test, I had to edit it from the email version. I also
just tested in the multiline message box. For testing in a button, in LiveCode
8, you have to declare the variable as well. This was the whol
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@lists.runrev.com> wrote:
> Remove the first "binfile" usage, so your code reads like this:
>
> put URL tNewImageLink into URL ("binfile:" & tNewFolder & "/" &
> tNe
On 06/03/2017 09:49 PM, Scott Rossi via use-livecode wrote:
Remove the first "binfile" usage, so your code reads like this:
I was gonna say something similar, but Scott's too fast for me.
--
Mark Wieder
ahsoftw...@gmail.com
___
use-livecode mailin
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
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_cheese_on_plate.jpg
*put* URL ("binfile:" & tNewImageLink) into URL ("binfile:" & tNewFolder &
"/" & tNewImageName)
*get
13 matches
Mail list logo