title: Parsing a Stream and a Parameter to a WCF operation contract through JSON
body: <p>I have to call a WCF service to transform an image. Since an image is a stream (can be large) I want to have a method in which I can send a stream as well as couple of parameters (image transformation information) to a method. How can I define the method signature for the operation contract? Note that I am making a JSON call and use an Http post method to send the image. So that I don’t have the luxury of creating a .net proxy.<br>
  How can I make a call to the following WCF method? Or is there a better method to do this?
  E.g. </p>
  
  <pre><code>        [OperationContract]
          [WebInvoke(UriTemplate = "/MyOperation", Method = "POST", RequestFormat = WebMessageFormat.Json,BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
  Public CompositeType1 MyOperation(Stream image,CompositeType2 param){
  
  }
  </code></pre>