M Moosi Member Licensed User Longtime User Mar 26, 2015 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Mar 27, 2015 #2 https://www.b4x.com/android/forum/t...he-b4a-name-file-android_asset.47838/#content Upvote 0
M Moosi Member Licensed User Longtime User Mar 27, 2015 #3 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
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?
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2015 #4 It should work in both modes. Make sure that the file name is lower cased. Upvote 0
M Moosi Member Licensed User Longtime User Apr 14, 2015 #5 Erel said: It should work in both modes. Make sure that the file name is lower cased. Click to expand... Hi Erel, sorry for replying so late, had been on vacation. The lower case did the trick, thanks a lot! Upvote 0
Erel said: It should work in both modes. Make sure that the file name is lower cased. Click to expand... Hi Erel, sorry for replying so late, had been on vacation. The lower case did the trick, thanks a lot!