I am trying to load images from a HTMLDrawable using <img> tags. But I can´t load them from relative paths. I create the HTMLDrawable by giving a string value to the html property (not with property uri), because I later need to replace some character strings.
The image I try to load is distance.png, I have it in the root folder of a "world" directory.
How can I load images directly from html?. Is it possible to load the absolute path and load the image from it?
Thanks you all!
Nicolas
M
Martin Lechner
said
about 8 years ago
Hi Nico,
I suggest to use absolute URIs to the referenced files. HTMLDrawables create a new "context" when they are created, so using absolute paths (remote locations will work) will avoid confusion.
Nico 543408