Is it possible to set image source in WP7 to stream? Usually I use BitmapImage for this in Silverlight, but I do not see this option in WP7. Here is my code:
var request = WebRequest.CreateHttp("http://10.1.1.1/image.jpg");
request.Credentials = new NetworkCredential("user", "password");
request.BeginGetResponse(result =>
{
var response = request.EndGetResponse(result);
var stream = response.GetResponseStream();
}, null);
The reason I ask is because I need to provide credentials to receive the image - if there is another way to get closer to the problem, I am open to suggestions.
source
share