0

I am taking a picture from a camera in my ionic app using capacitor plugin and showing it on my html. The picture is not displayed in the browser

<ion-img
        role="button"
        class="image"
        (click)="onPickImage()"
         [src]="selectedImage"
       
></ion-img>

Since the above didn't work I tried to put the base64 string directly to . even that did not work. Can someone kindly point out what's wrong here

<ion-img
        role="button"
        class="image"
        (click)="onPickImage()"
         src=""iVBORw0KGgoAAAANSUhEUg <the remaining part of base64 string of the image>"
       
></ion-img>

I get the below displayed in the browser enter image description here

3mr
  • 312
  • 2
  • 16

0 Answers0