Hi all,
I'm in domain environment. And I write some code to download image from URI.
try
{
WebClient client = new WebClient();
Stream stream = client.OpenRead("http://img.europapress.es/fotoweb/fotonoticia_20100412174814_200.jpg");
Bitmap bitmap = new Bitmap(stream);
stream.Flush();
stream.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
I encounter a wired issue. The error message is as following:
The thread 0x9ec has exited with code 0 (0x0).
The remote name could not be resolved: 'img.europapress.es'
The Interesting thing here is that I can visit that image through IE without any problem. But it just broke down when using code. Any comments?
Help!
Help!
Help!