title: Android, php and JSON: send image to Android with json
body: <p>What I need to do is to sent (from php script) an image with a <strong>JSON</strong> message to an android app. On php, I encode image as:</p>
  
  <pre><code>$thumbnail = file_get_contents("http://graph.facebook.com/" . $current['username'] . "/picture");
  $thumb_encoded = base64_encode($thumbnail);
  </code></pre>
  
  <p>and I get it from android with:</p>
  
  <pre><code>String image_base64 = jsonObj.getString("image");
  </code></pre>
  
  <p>It's correct to do like that, or I need to convert <code>$thumb_encoded</code> into string before sent it as a string with <strong>json</strong>?</p>