Quantcast
Channel: Joe Stevens' Blog » Silverlight
Viewing all articles
Browse latest Browse all 9

Set Silverlight Image Source from byte array

$
0
0
I’ve been playing around with Silverlight and WCF services and I came across the need to set the Source of an Image control in Silverlight from a byte array. I have a service method which returns an image from the server as a byte array which I want to show in the Silverlight application. My service method is simple and looks like this: In the Silverlight application I create a MemoryStream from the byte array, then a BitmapImage from the …

Viewing all articles
Browse latest Browse all 9

Trending Articles