iOS Question Accessing asset files from HTML

Alessandro71

Well-Known Member
Licensed User
Longtime User
While porting an app from B4A to B4i I stumbled on the following issue:
I have an HTML file in the asset folder, which loads an image from the asset folder itself as follows:
HTML:
<img src="file:///android_asset/add.png" alt="">
Is it still possible under iOS?
Which is the correct path?
The issue is applied to B4J also
 

Alessandro71

Well-Known Member
Licensed User
Longtime User
I solved loading the HTML file into a string and replacing a path placeholder with the path for the relevant platform
 
Upvote 0
Top