1
How to convert a string
(Image) to FileImageSource
(Icon) ?
I need to display a photo on ToolbarItems
in the right corner of the hamburger menu.
I tried that way, but it didn’t work. My code:
FileImageSource IconFoto = new FileImageSource();
IconFoto = Foto; // Imagem retornada do BD como string
this.ToolbarItems.Add(new ToolbarItem("nome", IconFoto, () =>
{
}, ToolbarItemOrder.Primary));
I tried to use this however, it gives image source to fileimagesource conversion error. Then he asks to cast a cast, then I cast and execute the conversion error.
– AndreeH
its string is a base 64 ?
– Tarcisio Vitor