title: Fail to send image ( byte[] ) as parameter of WCF service
body: <p>I wrote some service that have method that get image ( byte[] ) as parameter ( return void ).</p>
  
  <p>I also wrote some client (client &amp; server run on same machien - different sulotion - using IIS )that send the bitmap ( as byte[] ) to the service - and each time i try to send i get the exception:</p>
  
  <p><strong>An error occurred while receiving the HTTP response to <a href="http://localhost/WebService/Service.svc" rel="nofollow">http://localhost/WebService/Service.svc</a>. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down)</strong></p>
  
  <p>I added one more method that get void and return int - and i can call this method with no problem. </p>
  
  <p>What can be wrong ? Do i need to define something speciel in the client service reference ? </p>
  
  <p>The service method </p>
  
  <pre><code>[ServiceContract]
  **public interface IService**
  {
      [OperationContract]
      void GetPic( byte[] pic );
  }
  
  **public class Service : IService**
  {
      public void GetPic( byte[] pic )
      {
            ...   
      }
   }
  </code></pre>
  
  <p>Web.config file:</p>
  
  <pre><code> &lt;system.serviceModel&gt;
  &lt;services&gt;
    &lt;service behaviorConfiguration="ServiceBehavior" name="ServiceProxy.Service"&gt;
  
      &lt;endpoint 
        name="basicHttp"
        address="" 
        binding="basicHttpBinding" 
        bindingConfiguration=""
        contract="Contracts.IService"&gt;
      &lt;/endpoint&gt;
  
      &lt;endpoint 
        address="mex" 
        binding="mexHttpBinding" 
        contract="IMetadataExchange" &gt;
      &lt;/endpoint&gt;
  
      &lt;host&gt;
        &lt;baseAddresses&gt;
          &lt;add baseAddress="http://localhost:8731/ServiceProxy/" /&gt;
        &lt;/baseAddresses&gt;
      &lt;/host&gt;
  
    &lt;/service&gt;
  &lt;/services&gt;
  
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="ServiceBehavior"&gt;
        &lt;serviceMetadata httpGetEnabled="True"/&gt;       
        &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  </code></pre>
  
  <p></p>