我有一个课程如下
public class Upload
{
[Key()]
public Guid ID{ get;set;}
public string FileName {get;set;}
public byte[] File { get; set; }
public string FileContentType { get; set; }
}
我需要一个http或webClient来调用web api post方法,该方法接受这个复杂(对象)类型的对象。
我可以在Web api 2中看到很多需要.net 4.5的例子,但我需要在.NET 4.0中运行的一些工作示例
很遗憾,但很多公司仍然使用.NET 4.0并且没有计划迁移到4.5但是他们需要.NET应用程序中的所有功能。
那么请你告诉我这是否可能?
我需要一个带有HttpClient或WebClient的.net客户端,或者是否还有其他库!
干杯