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

Show images from data directory. (V4)

$
0
0

@KnowYourselves wrote:

Hello!

I have the following problem:

I’m doing an app were the users must select a zip file that the app will parse. I unzip the content (images) into the data directory and then move them to the files directory.

My problem is that when I try to show these images in the view I just cant, I’ve searched the forum but no solution seems to work for me.

Here is how I’m saving the path after I moved the images:

  this.path = (this.file.dataDirectory + 'files/' + this.name);

Then to show them in the view I’m doing:

<img [src]=path>

I’ve checked and the images are indeed in the correct directory after moving them and the name is correct too.
Any Ideas?

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70444

Trending Articles



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