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?