如何在WCF休息服务中上传多个图像。有人帮我解决了这个问题。 图像从Android设备接收为Byte数组 并且要求从andcod到wcf休息服务进行一次调用
以下是我的代码
[WebInvoke(Method = "POST", UriTemplate = "UploadFilePost?FileName={FileName}&WallPostId={WallPostId}", RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, ResponseFormat = WebMessageFormat.Json)]
public MobileFileUploadResponse UploadFilePost(List<Stream> Image, string FileName, long WallPostId)
{
ServicesMapper serviceMapper = new ServicesMapper();
return serviceMapper.UploadFilePost(Image, FileName, WallPostId);
}