I am trying to retrieve database fields from sqlite database such as name, mobile and pic which is to be displayed through webview and html tags as indicated in the code below: I dont have problem with getting ordinary sqlite text fields as well as getting images from android file assest appearing on html code, but i am having problem on how to display blob images from sqlite database into html file below, but work fine if i retrieve image directly from file asset. I like to display blob image from sqlite database on this line here: <img src=" & blobimagefromsqlitedatabase & ".jpg /> below. Please, help!
B4X:
wbview.LoadHtml("<html oncontextmenu='return false;'><body>" & "<img src = 'file:///android_asset/1.jpg' height = 80 width = 100% />" & "<BR>" & "Name: <font color = 'red'>" & name & "</font><BR><BR>" & "Mobile: <font color = 'red'>" & mobile & "</font><BR>" & "<img src=" & blobimagefromsqlitedatabase & ".jpg />" & "<BR>" </body></html>" )
WebViewExtras2a.addJavascriptInterface(wbview, "B4A")
WebViewExtras2a.addWebChromeClient(wbview, "")
Last edited: