B b4auser1 Well-Known Member Licensed User Longtime User Jun 7, 2017 #1 How to build url string to load local file into webview ? I use for b4A: B4X: m_sPicture_url = $"file://${File.Combine(a_sFullDirName, a_sFileName)}"$ and html with B4X: $"<img src="${m_sPicture_url}"/>"$ but in B4i picture file is not loaded
How to build url string to load local file into webview ? I use for b4A: B4X: m_sPicture_url = $"file://${File.Combine(a_sFullDirName, a_sFileName)}"$ and html with B4X: $"<img src="${m_sPicture_url}"/>"$ but in B4i picture file is not loaded
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2017 #2 Is this an asset file? If so then you should use this code in all platforms: https://www.b4x.com/android/forum/t...-from-assetsdir-in-webview.78500/#post-497506 Upvote 0
Is this an asset file? If so then you should use this code in all platforms: https://www.b4x.com/android/forum/t...-from-assetsdir-in-webview.78500/#post-497506
B b4auser1 Well-Known Member Licensed User Longtime User Jun 9, 2017 #3 This is folder in File.DirLibrary. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2017 #4 Your code is correct. File names are case sensitive. Make sure that the case is correct. Upvote 0