title: How can I add an image file into json object?
body: <p>I want to add an image file into json object . Is it possible to add image file into json object?</p>
  
  <p>I tried below code but its not working ? Because i want to send that json object to the server then server will read my image file and store into that database.</p>
  
  <pre><code>JSONObject test = new JSONObject();
  test.put("photo",new File(// Here i set image uri));
  </code></pre>
  
  <p>So when I print this json object it only show me the image path where the image stored. I want file for sending it to server.</p>