title: uploading image to the web service using WebClient
body: <p>getting problem in uploading an image to the web service using <code>web client</code>, 
  my code is---></p>
  
  <pre><code>Uri uri = new Uri("http://localhost/Test/SaveImage");
              string imageData = Convert.ToBase64String(data);
              WebClient web = new WebClient();
              web.UploadStringAsync(uri, "Post", imageData);
              web.UploadStringCompleted += new UploadStringCompletedEventHandler(web_UploadStringCompleted);
  </code></pre>
  
  <p>in above code the image converted into the byte array &amp; then to the Base64String to upload.</p>
  
  <p>But at receiving end---></p>
  
  <pre><code>[HttpPost]
  public bool SaveImage(string ImageBytes)   &lt;---ImageBytes is Null
          {
                   ///// some code
          }
  </code></pre>
  
  <p><strong>the ImageBytes parameter getting null</strong>, can anyone figure out the problem ?</p>