Could not upload Image to WCF Rest service
问题 I am creating a WCF Rest Service to Upload Images from Mobile application. but i am getting The remote server returned an error: (400) Bad Request. can any one point me what i have done wrong. Following are my Definitions : [OperationContract] [WebInvoke(BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "/PostImage",Method ="POST")] PublicMessage PostImage(Upload obj); [DataContract] public class Upload { [DataMember] public Stream File { get; set; } } Service Definition : public