Is it possible to extract the steam (or something similar) from a silverlight image control?
I figured you could get the stream from the Image.Source property, but so far that has been a dead end option.
Thanks.
Is it possible to extract the steam (or something similar) from a silverlight image control?
I figured you could get the stream from the Image.Source property, but so far that has been a dead end option.
Thanks.
In general, the answer is no. The reason being that the image element is not constrained by the same cross-domain limitations that most other network traffic is subjected to in Silverlight (i.e. you can display an image accessed cross-domain, but your application can never access the image data).
In order to get access to the underlying bits of an Image, you can get the image's source URI and then use WebClient to request the stream (assuming that your app has the appropriate access to that server).