MikeMon 12 Posted January 22, 2021 Hi I have an issue with loading a local image in a local HTML file on iOS. On Android it loads correctly. Here is the code I use to get the file including its path: FileName:= 'Image.jpg'; FileName:= TPath.Combine(TPath.GetDocumentsPath, FileName); I checked and the file exists. The image in the local HTML file is assigned as: <img alt="Nov" src="file://the filename above"> I also checked with starting the source with "file:///". It STILL doesn't work on iOS but does on Android. Any ideas? Share this post Link to post
MikeMon 12 Posted January 26, 2021 (edited) Hi Has anyone faced a similar issue? Edited January 26, 2021 by MikeMon Share this post Link to post
MikeMon 12 Posted January 26, 2021 I found a solution by embedding the image as a base64 encoded string and it's working fine on iOS. Share this post Link to post