(08-31-2023, 05:20 PM)bplus Wrote: @dbox
Does the image have to be accessible from Internet?
I found one example with that, the Chuck Norris demo.
I am trying to figure out how to get QB64 logo image into banner.
How do we get images loaded from our computer drive?
Same-origin policy
Not that I'm any expert in the subject, but with my amateur hat on: cross-site resource sharing can be a tricky business.
If you want a QBJS instance out there on the web to have access to images, those images need to be hosted somewhere out there on the web with some kind of HTML header that allows cross-origin resource sharing.
And regarding local images/resources: nothing on the web will ever ever ever have access to local images/resources. That should never be allowed.
A local QBJS instance should be able to access local resources, and I'm pretty sure a local QBJS instance cannot access resources on the web. The behaviour of local QBJS might depend on device, operating system, browser.