I tried to convert image to base64 to json in php, then send it to android. However, it seems the image base64 json contains special characters. Anyone have any idea on this
Code:
$response["Data"] = array(); $Array["thumbnail"] = base64_encode(file_get_contents(image.jpg)); array_push($response["Data"], $Array); return urldecode(json_encode($response));
0 comments:
Post a Comment