0
現在,我與我的第一個Windows Mobile的項目工作,我有一個奇怪的問題..
我使用WebRequest
下載從互聯網的一些圖片 - 我的手機它的工作原理,但在調試器我有套接字例外。使用的WebRequest localy導致異常
string url = "http://new.meteo.pl/um/metco/mgram_pict.php?ntype=0u&fdate=2010011006&row=381&col=199&lang=pl";
Stream stream = null;
WebRequest requestPic = WebRequest.Create(url);
WebResponse responsePic = requestPic.GetResponse();
stream = responsePic.GetResponseStream();
return new System.Drawing.Bitmap(stream);
輸出:
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
The thread 0x167c46f6 has exited with code 0 (0x0).
如何強制我的本地實例來獲得這個圖像?