title: ImageConverter: Parameter is not valid for a byte array
body: <p>I am sending a string formatted data of the image from an iPhone client code to a web service. I am trying to encode that in binary64 and then convert it to a byte array. I get this problem of <code>Parameter not valid</code> at the following point in the code. </p>
  
  <pre><code>        byte[] ImgInput = System.Text.Encoding.UTF8.GetBytes(ImgInputString);
  
          string imgString = Convert.ToBase64String(ImgInput);
          byte[] imgBYtes = Convert.FromBase64String(imgString);
  
          System.IO.Stream ms =(Stream)
          new System.IO.MemoryStream(ImgInput);
          //ms.Write(ImgInput, 0, ImgInput.Length);
          ImageConverter ic = new ImageConverter();
  
          Image image = (Image)ic.ConvertFrom(imgBYtes);---ERROR here
  </code></pre>