I want to add an image file into json object . Is it possible to add image file into json object?
I tried below code but its not working ? Because i want to send tha
You will need to read the bytes from that File into a byte[] and put that object into your JSONObject.
bytes
File
byte[]
JSONObject
You should also have a look at the following posts :
Hope this helps.