Loading an image file from iOS tmp/ folder in WKWebView from JavaScript
<p>So the setup is images are created on the native side (Swift) of my application, which are then saved to the Temporary storage folder in the sandbox. How can I load that image from <code>JavaScript</code>? I've been able to use <code>loadFileURL(_: allowingReadAccessTo:)</code> on my <code>WKWebView</code> to load the image on top of everything, but I wanted to be able to reference that image in my <code>JavaScript</code> to do stuff with it - for now, just loading it into an img element. I can get its full URL passed in easy enough with <code>evaluateJavaScript:</code> too, but that doesn't seem to help. How is that done?</p>

<p>Thanks!</p>