Hello,
You can convert base64 string to byte[]
by Convert.FromBase64String(String) Method, then read byte[]
to stream
, set the stream
to the imagesource
like following code.
ImageSource.FromStream(() => new MemoryStream(Convert.FromBase64String(base64String)));
If you are using MVVM, you can set the ImageSource to your property in the viewmodel.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.