I have done the same I do in the help files I use. Now it works:
B4X:
Dim src As String
src = QUOTE & "data:image/jpeg;base64,"
Dim su As StringUtils
src = src & su.EncodeBase64(File.ReadBytes(AppData,filenameLetterPicture)) & QUOTE
Interesting, why this code works.
In topics dated 5-6 years ago I saw a recommendation to copy pictures from assets to physical folders . Probably, something was changed in IOS.
Interesting, why this code works.
In topics dated 5-6 years ago I saw a recommendation to copy pictures from assets to physical folders . Probably, something was changed in IOS.
Better to use: [B4X] HugeImageView - show very large images Depends on: XUI and JavaObject. 'xui is a global XUI object. Private Sub ShowImage(WV As WebView, Dir As String, FileName As String) #if B4A Dim jo As JavaObject = Me jo.InitializeContext 'comment this line if calling this...
If you care to read the whole thread, what happens is that if the picture file is pointed at as an src, it displays only if it is in file.DirAssets, or File.DirTemp.
I see. As far as I know, only DirDocuments is writable. I remember ImageView can read from this location. If you want to use WebView then I think the only option is to copy the image to DirTemp.