iOS Question Local FilePath in WebView

Moosi

Member
Licensed User
Longtime User
Hi,
when loading a local html into a WebView in B4A, I can use Links to Images inside the html like
"<img src="file:///android_asset/TheFile.png" />"

What is the equivalent path in B4i ?

thanks a lot
Moosi
 

Moosi

Member
Licensed User
Longtime User
B4X:
Dim linktoimage as String
linktoimage = File.Combine(File.DirAssets, "pic.png")
WebView1.LoadHtml("<html><head></head><body><img src=' " & linktoimage & " '></body></html>")

Thanks Erel,
but this code does not work here. Is this related to the debug mode, maybe?
 
Upvote 0
Top