Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Rendering an image from local dataDirectory on iOS

$
0
0

@fantata wrote:

I’m sure I must be doing something simple wrong here. All I want to do is load images when the app loads, store them, then render them.

The download and storage is going fine, but I cannot get anything to work in terms of rendering the image in an image tag. I’m saving the return from the file.toURL() method (have also tried .toNativeURL())

I have tried both file:// and cdvfile:// by using the methods on the native file object, but neither work. The CDV file produces the error “WARNING: unsafe url sanitzed” on iOS.

I’ve tried using the bypassSecurityTrustStyle function of the DOMsanitizer to no effect, and as thats from the browser platform library, is it even available when it runs on iOS?

Any help would be appreciated, surely this must be simple. I’m sure I’l missing something obvious.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>