How to Save Image attachement from Mobile App - Using WCF Rest Service

481 views Asked by At

In my WCF Service I will receive an image attachment from a mobile App. I dont know how to write the code. I appreciate if you can forward some examples and code. I am new to WCF.

    [OperationContract]
    [WebInvoke(UriTemplate = "/SaveAttachment",
              Method = "POST",
               RequestFormat = WebMessageFormat.Json,
               ResponseFormat = WebMessageFormat.Json)]
    ReturnSaveAttacmentStatus SaveAttachment(DomainName,TimeSheetID, ImageFIle);
1

There are 1 answers

0
sakir On

you can take a look at here on the git hub which I have written an application that how to upload images from android phone to wcf service with the sample application