title: Disallowed key characters while uploading image in base64 format
body: <p>I'm developing Windows phone(8.0)apps and I'm new to it,I'm using below code to post image to server in <code>Base64</code> format using post client</p>
  
  <pre><code>Uri uri = new Uri(UPLOAD_IMAGE_PATH);
  UploadImageData requestData = new UploadImageData();
  requestData.image = base64String;
  string jsonString = JsonConvert.SerializeObject(requestData);
  PostClient proxy = new PostClient(jsonString);
  proxy.DownloadStringCompleted += new PostClient.DownloadStringCompletedHandler(proxy_DownloadStringCompleted);
  proxy.DownloadStringAsync(uri);
  </code></pre>
  
  <p>where <code>base64String</code> is my image string encoded in Bae64 by using below code</p>
  
  <pre><code>internal static string ImageToBase64String(Stream choosenPhoto,Image image)
  {
     WriteableBitmap bmp = new WriteableBitmap((BitmapSource)image.Source);
     byte[] byteArray;
     using (MemoryStream stream = new MemoryStream())
     {
       bmp.SaveJpeg(stream, bmp.PixelWidth, bmp.PixelHeight, 0, 100);
       byteArray = stream.ToArray();
       return Convert.ToBase64String(byteArray); 
     }           
  }
  </code></pre>
  
  <p>In below response it returns "<code>disallowed key charaters</code>" on <code>result</code>.</p>
  
  <pre><code>void proxy_DownloadStringCompleted(object sender, WindowsPhonePostClient.DownloadStringCompletedEventArgs e)
  {
     string result = e.Result;
  }
  </code></pre>
  
  <p>But when i post same JSON string using <code>REST Client</code> from Mozilla, JSON response from server is successfull.
  I searched about this and i got some links <a href="https://stackoverflow.com/questions/8114512/disallowed-key-character-error-in-codeigniter">link 1</a>, <a href="https://stackoverflow.com/questions/5423212/codeigniter-disallowed-key-characters">link 2</a> that i need to allow characters on server side in <code>Input.php</code> file, So exactly what kind of character i need to allow. It works from <code>REST Client</code> did i miss something in my C# code, Please help me</p>