Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
on startup
loadImage
end startup
on loadImage
set the downloadedImage of me to specialFolderPath("temporary") & "/image.jpg"
put url "http url/image.jpg" into url ("binfile:" & the downloadedImage of me)
-- try 1:
set the fileName of image "Image" to url ("binfile:" & the downloadedImage of me)
-- try 2:
set the fileName of image "Image" to the downloadedImage of me
-- try 3:
set the fileName of image "Image" to url "http url/image.jpg"
end loadImage
on loadImage
set the downloadedImage of me to specialFolderPath("temporary") & "/image.jpg"
put url "http url/image.jpg" into url ("binfile:" & the downloadedImage of me)
## THE RESULT = EMPTY on success!
if the result <> EMPTY then
answer "Problem:" && the result
end if
...
I started a new main stack and tried it again, now it works. I tried to find out the difference between the both, but there seems to be now difference. Both build for ios standalone, both have the same dimensions and the same buttons, just 50 lines of codes but there must be some difference. Maybe a bug in 7.0.4 ...