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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).