I need help, I have this method to get a BitmapImage from a Byte[]
public BitmapSource ByteToBitmapSource(byte[] image)
{
BitmapImage imageSource = new B
Set Image.Source
to a byte array property in XAML.
If you really want you can do this in code-behind:
public void DecodePhoto(byte[] byteVal)
{
BitmapImage myBitmapImage = new BitmapImage();
myBitmapImage.BeginInit();
myBitmapImage.StreamSource = new MemoryStream(byteVal);
myBitmapImage.DecodePixelWidth = 200;
myBitmapImage.EndInit();
MyImage.Source = myBitmapImage;
}