Setting images in Base64

plugins

#1

Hello !

For creting project, i used:

tns create myproj --template https://github.com/NativeScript/template-drawer-navigation-ts 

app-root.xml:

<nsDrawer:RadSideDrawer id="sideDrawer" xmlns:nsDrawer="nativescript-ui-sidedrawer" loaded="onLoaded">
    <nsDrawer:RadSideDrawer.drawerTransition>
        <nsDrawer:SlideInOnTopTransition/>
    </nsDrawer:RadSideDrawer.drawerTransition>

    <nsDrawer:RadSideDrawer.drawerContent>
        <GridLayout rows="auto, *" class="sidedrawer sidedrawer-left">
            <StackLayout class="sidedrawer-header">
                <Label class="sidedrawer-header-image fa" text="&#xf2bd;" />
                <Label class="sidedrawer-header-brand" text="{{ user_title }}" />
                <Label class="footnote" text="{{ email }}" />
            </StackLayout>

result:

images I have in format Base64.
How can i set it ?


#2

You can create a image source fromBase64 and assign it to your Image component.