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're only adding the File object to the JSON object. The File object only contains meta information about the file: Path, name and so on.
You must load the image and read the bytes from it. Then put these bytes into the JSON object.