I am writing app services for android app. I am using codeigniter. From android i am getting base64 string. I am trying to convert it to image. They are sending like $_POST[ base64string ] and i am converting like below.
$data=base64_decode($_POST['signature_image']);
$im=imagecreatefromstring($data);
header('Content-Type: image/jpeg');
imagepng($im,$loc_url.$imagename1);
imagedestroy($im);
but it is not converting to image.We are using other server and there also we are using same app services. it is working there. I don't know what is the issue. I have tried increasing
ini_set('post_max_size','250M');
ini_set('upload_max_filesize','200M');
in my controller and model file. But it is not working. Please help me what is the issue and how it is resolve?