It would be very handy, if the value property of the PictureBox would resolve images from base64 strings besides the Image, Image byte[], relative or absolute URI.
It should be fairly simple to implement. I wrote my own user function for this. It would be beneficial to have this out of the box.
[Function(Category = "Image", Namespace = "ImageFunctions", Description = "Converts a base64 string to an image byte array")]
public static byte[] ConvertFromBase64(string imageString)
{
if (imageString != null)
{
// Convert base 64 string to byte[]
byte[] imageBytes = Convert.FromBase64String(imageString);
return imageBytes;
}
else
{
return null;
}
}