Load image from url

Jimmy

Active Member
Tutorial Author
Joined
Jan 2, 2020
I have an image URL. I want to display an image from this URL but I am unable to do that. I tried from the manual to use the load image command in mojo2

Cerberus X:
sourceImage=Image.Load("https://www.iconspng.com/images/tyrannosaurus-rex-pixel/tyrannosaurus-rex-pixel.jpg",0,0,0)
I feel stupid to ask this. How can this be achieved?
 

Jimmy

Active Member
Tutorial Author
Joined
Jan 2, 2020
Oh okay thanks. this is for Android!

But I test on html/desktop bc the testphone got a bad wifi antenna.
Maybe I can use databuffer.Load to load images somehow.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Location
Germany
Always watch the error messages in the browser console, as the browser might block loading stuff from external places, when not being on the same domain (local -> web). Maybe Firefox Developer Edition might help, if that is still a thing.
 
Top Bottom