I use web service to upload image on server but when I called it I got following error:
No connection could be made because the target machine actively refused
Here is my code snippet.
MemoryStream ms = new MemoryStream(f)
FileStream fs = new FileStream(@"C:\\" + fileName, FileMode.Create);
ms.WriteTo(fs);
ms.Close();
fs.Close();
fs.Dispose();
return "OK";