Skip to content

Load images dynamically. #1208

Answered by r0x0r
TomSchimansky asked this question in Q&A
Discussion options

You must be logged in to vote

There is no access to file system when you load HTML dynamically. You have several choices

  1. Use a local HTTP server. Then paths will be resolved relative to the script location.
  2. Load image as a base64 string
  3. Load image from a remote server

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TomSchimansky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants