In WPF, you can set the Source property for Image , as in this example:
Image image = new Image(); using (MemoryStream stream = new MemoryStream(byteArray)) { image.Source = BitmapFrame.Create(stream, BitmapCreateOptions.None, BitmapCacheOption.OnLoad); }
Where byteArray is an array of bytes with the image source.
source share