Local Image Button

As you rightly pointed out it’s not working because the file you are looking for isn’t being hosted by the server, Not sure if there’s a better way but I think you have two options here-

  1. Generate base64 of the image and put it in src
    Check this link for reference.
    https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html
  2. If you have a lot of static content consider hosting it on a separate server maybe. then you can use the URL for that static content by the server. ( Just python -m http.server or nginx should do the job )

Hope it helps ! :slight_smile:

3 Likes