Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

How can I view the images made in the Ionic tutorial photo gallery app

$
0
0

@rvrwow wrote:

Hi,

I followed the Ionic v4 tutorial and ‘created’ the photo gallery app as found in the Ionic documentation.
I now tried to expand here by using Photoviewer to view the image.
In the example code this is given:

*ngFor="let photo of photoService.photos; index as position"> <ion-img src="{{ photo.base64 ? photo.base64 : photo.webviewPath }}" (click)="showActionSheet(photo, position)"></ion-img>

This displays the photos in the gallery. I now tried to give showActionSheet another argument which would be used with Photoviewer to find the location. However, if I try (click)="showActionSheet(photo, position,photo.webviewPath)
or photo.base64 ? photo.base64 : photo.webviewPath
I do see that the Photoviewer on my phone is working but it gives an error that it cannot find the image. Would anyone know how to correctly link to an image from local storage?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



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