title: Send image to a SOAP 1.0 webservice from a .Net client
body: <p>I need to send an image to a SOAP web service implemented in PHP.</p>
  
  <p>The WSDL for the service looks like this...</p>
  
  <pre><code>&lt;xsd:complexType name="Product"&gt;
    &lt;xsd:all&gt;
      &lt;xsd:element name="ProductId" type="xsd:int"/&gt;   
      &lt;xsd:element name="Image01" type="xsd:base64Array"/&gt;
    &lt;/xsd:all&gt;
  &lt;/xsd:complexType&gt;
  </code></pre>
  
  <p>When I reference this service in my C# application the data type used for <code>Image01</code> is <code>String</code>.</p>
  
  <p>How can I get an image from disk and send encode it in the correct way to send it via this complex type?</p>
  
  <p>Would appreciate sample code.</p>