1
Answer

How to download image in server to my pc??

Shree Patil

Shree Patil

7y
156
1
Hello,
 I am try to implement downlaod image in server to web app but show the below error.How to resolved this error.....
 
"An exception occurred during a WebClient request."
 
 
This is my code:-
 
using (WebClient webClient = new WebClient())
{
System.Uri uri = new System.Uri(Convert.ToString(Dt.Rows[0]["Image"]));
string specialfolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
webClient.DownloadFile(Convert.ToString(uri), specialfolder);
//webClient.DownloadFile(Convert.ToString(Dt.Rows[0]["Image"]), @"C:\Users\PRIYANKA\Downloads");
}
 
Help me
thanks in advance..... 
 
Answers (1)