Issue Loading a Local Image in a Local HTML file on iOS using TTMSFNCWebBrowser

Hi

I have an issue with loading a local image in a local HTML file on iOS using TTMSFNCWebBrowser. On Android it loads correctly.

Here is the code I use to get the file including its path: S is a TStrings.

FileName:= 'Image.jpg';
FileName:= TPath.Combine(TPath.GetDocumentsPath, FileName);

S.Clear;
S.add('<html>');
S.add('<body>');
S.add('<div style="text-align: center">');
S.add('<img alt="JCC" src="file://'+FileName+'"');
S.add('style="width: 500px; height: 155px">');
S.add('</div>');
S.add('</body>');
S.add('</html>');
TMSFNCWebBrowser1.LoadHTML(S.Text);

I checked and the file exists.
I also checked with starting the source with "file:///". It STILL doesn't work on iOS but does on Android.

Any ideas?

Hi, local files are currently not supported on iOS and macOS. We'll investigate the possibilities. Please embed the image as base64 encoded string instead. You can convert the images with this tool: https://www.base64-image.de/

Great. Thanks!!