static void Main(string[] args)
{
try
{
String uriString = "http://******;
WebClient myWebClient = new WebClient();
string fileName = @"C:\Pictures\phone-icon.png";
Stream objStrm = myWebClient.OpenRead(fileName);
objStrm.Position = 0;
myWebClient.UploadFile(new Uri(uriString), "POST", objStrm.ToString());
Console.WriteLine("completed");
Console.Read();
}
catch (Exception ex)
{
Console.WriteLine("error");
}
but it is not working,image is not uploading at my destination