@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)
orphoto.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