I have a byte[]
that is represented by an Image
. I am downloading this Image
via a WebClient
. When the WebClient
Create a BitmapImage
from the MemoryStream
as below:
MemoryStream byteStream = new MemoryStream(bytes);
BitmapImage image = new BitmapImage();
image.BeginInit();
image.StreamSource = byteStream;
image.EndInit();
And in XAML you can create an Image
control and set the above image
as the Source
property.