在我的 WCF 服务中,我将收到来自移动应用程序的图像附件。我不知道如何编写代码。如果您能转发一些示例和代码,我将不胜感激。我是 WCF 的新手。
[OperationContract]
[WebInvoke(UriTemplate = "/SaveAttachment",
Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json)]
ReturnSaveAttacmentStatus SaveAttachment(DomainName,TimeSheetID, ImageFIle);