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

Image base64 not display when run on android emulator

$
0
0

@knkhairulnajmi wrote:

I have call images in base64 from mysql database and the image can be display properly when i run in browser using ionic serve. But, when i try to run on android emulator the image is not display. Anyone please help me.

Here is my html code

<ion-card class="card"  *ngFor = "let letter of letters;">
    <ion-label>
        <h2>{{letter.message}}</h2>
        <h5>Date:{{letter.date}} Time:{{letter.time}}</h5>
        <ion-img [src]="'data:image/jpeg;base64,'+letter.image" alt="Select Image"></ion-img>
        
        
    </ion-label>
  </ion-card>

Anyone please help me.

Thank you in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



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