Boscop / Boscop/web-view

<img src="local-dir"> not working?

Open
#180 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
179
PR merge metrics
No merged PRs in 30d

Description

So what I am trying to do is:

1. load some small images, display them as buttons, in html
2. users may click buttons to open local image files then display them

And looks like loading images on internet or loading with base64 encoding works fine, but loading images from my own machine doesn't work. Is this a bug, or is it actually how webview works, or did I mess something up?

And if this is expected behavior of webview, I can kind of make case 1 work by base64-encode all button images and inline them into html, but that makes html awkward to maintain, and for case 2 I really have no idea how to make that happen. Any tips?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.