I have a controller action that looks like this
public class MyController : Controller
{
[HttpPost]
public int Save(int id, string someField, int someOtherField, byte[] content)
{
}
}
In another application I need to upload some data to this action either using WebClient or HttpWebRequest. How would I use one of these classes to upload data to this action?