I'm Here today because I've a problem to decode Base64 string with nativescript angular.
So, in my situation, I've a listview of Image, like this :
<GridLayout class="page page-content">
<ListView [items]="Dogs" class="List">
<ng-template let-item="item">
<StackLayout class="Container">
<Image class="Logo" src="{{item.img}}"></Image>
</StackLayout>
</ng-template>
</ListView>
</GridLayout>
There is nothings special, it just a list to show my images.
Then in my typescript, I've a array like this :
Dogs = [{img: fromBase64('FirstBase64String')},{img: fromBase64('SecondBase64String')},{img= fromBase64('ThirdBase64String')}];
But it does'nt display the image and i don't have any error message.
I've also try the classic javascript method, but she does'nt work.
So here my questions :
How can I display my images using my Base64String ?
Keep in mind that I've to use a Listview, I know Listview can be problematic.
But I've no choice but to use it.
Also, I'm on Android, I don't know if it matter.
Thank you.