WebView html images in App

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I don't see this question asked anywhere on this form.

When a user clicks on my "help" menu item, I display a web page that is installed with the app and is located in a file in DirAssets. The webpage references PNG images which are also located in DirAssets. The code looks like the following:

str = File.GetText(File.DirAssets, "myhlp.html")
wvHlp.LoadHtml(str)

The question is, how do I tell WebView that the PNG images referenced by the HTML file are local, from DirAssets? Or, how do I display a local webpage with locally referenced images? Where do I put the images and how do I reference them?

Right now the images are "not found" and displayed as image placeholders.

Thanks,
Barry.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…