B4J Question referance to an attached image

tsteward

Well-Known Member
Licensed User
Longtime User
In B4J I want to get the path to an image so as to add that image to my html code that will then be displayed in a webview.
I have added the image to the project but just dont know how to locate it.

In B4A I create html code something like src="File:///android_asset/fo21p.png">
In B4J i have created html code src="File:///AssetsDir/fo21p.png"> but this does not show the image
 

tsteward

Well-Known Member
Licensed User
Longtime User
All sorted - figured it out using File.GetUri(File.DirAssets,filneame)
 
Upvote 0
Top