So, I wanted to display html pages on a WebView in my Xamarin.Forms app. The html pages contain numerous images which are locally stored (PersonalFolder on Android & iOS and WindowsStorage LocalFolder on UWP).
For Android it works very well (not tested on iOS yet) and I can display the images. However it doesn't seem to be working on UWP. After some research on multiple forums I concluded that the only way to display images on a WebView via html string is to convert the images to Base64 string.
And this actually works, but the process of reading the image from the disk and converting to Base64 takes a while than I would expect (even on a high-end PC). The other option I had is to save the Base64 string in to my SQLite db, but here my concern is the db will grow drastically.
My images are dynamically downloaded from the web and can not be included in "Assets" folder as part of the project.
Can anyone help me understand, if these are the only ways? Any better alternatives? I wish I could display images on UWP just like I could on Android.