I am a Java guy and don't know about PHP. I am sending byte
array of image
to the PHP server and I want the PHP code to convert that byte
array to image
and save the image
to a folder and return path of that file so that I can store it to a database
Java side:
String image = Base64.encodeToString(chosenImage.getFileThumbnail().getBytes(),
Base64.NO_WRAP);
PHP Side:
$datax = $data['image'];
$datax = base64_decode($datax);
$im = imagecreatefromstring($data);
move_uploaded_file($im , 'upload/' .'abc.png' );
$path = 'http://xxxx/cc/zz/tt/' . $new_file_name;
}