FHEBERT Member Licensed User Longtime User Mar 19, 2017 #1 Hello, How to load an image from the application directory ? This example does not work Exemple : AdvancedWebView1.LoadHtml("<img src = 'file:///" & File.DirDefaultExternal & "/Chat/Me.png'</img>")
Hello, How to load an image from the application directory ? This example does not work Exemple : AdvancedWebView1.LoadHtml("<img src = 'file:///" & File.DirDefaultExternal & "/Chat/Me.png'</img>")
eurojam Well-Known Member Licensed User Longtime User Mar 20, 2017 #2 it should be rather something like B4X: AdvancedWebView1.LoadHtml("<html><body background = 'file:///" & File.Combine(File.DirDefaultExternal) & "/Chat/Me.png'</body></html>") not tested, just a suggestion... Upvote 0
it should be rather something like B4X: AdvancedWebView1.LoadHtml("<html><body background = 'file:///" & File.Combine(File.DirDefaultExternal) & "/Chat/Me.png'</body></html>") not tested, just a suggestion...
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2017 #3 B4X: WebView1.LoadHtml($"<img src="file://${File.Combine(File.DirDefaultExternal, "Chat/Me.png")}" />"$) Upvote 0
B4X: WebView1.LoadHtml($"<img src="file://${File.Combine(File.DirDefaultExternal, "Chat/Me.png")}" />"$)
FHEBERT Member Licensed User Longtime User Mar 21, 2017 #4 Thanks a lot ! This code (Erel) works only with WebView. I don't know why this doesn't works with AdvanceWebView. So, I will use the WebView Library Upvote 0
Thanks a lot ! This code (Erel) works only with WebView. I don't know why this doesn't works with AdvanceWebView. So, I will use the WebView Library