QBJS Image Question
#5
(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.
Reply


Messages In This Thread
QBJS Image Question - by bplus - 08-31-2023, 05:20 PM
RE: QBJS Image Question - by bplus - 08-31-2023, 05:41 PM
RE: QBJS Image Question - by dbox - 08-31-2023, 05:43 PM
RE: QBJS Image Question - by dbox - 08-31-2023, 05:45 PM
RE: QBJS Image Question - by CharlieJV - 08-31-2023, 05:48 PM
RE: QBJS Image Question - by bplus - 08-31-2023, 05:49 PM



Users browsing this thread: 1 Guest(s)