我正在尝试使用weblclient Object保存我的图像。
这是我的代码..
try
{
WebClient client = new WebClient();
NetworkCredential nc = new NetworkCredential("****", "*****");
Uri addy = new Uri(@"\\104.199.191.5\Images\");
client.Credentials = nc;
byte[] arrReturn = client.UploadFile(addy, "Post", @"E:\free-html-admin-templates.JPG");
}
catch (Exception ex)
{
}
现在我收到错误找不到网络路径..
我错在哪里?