how to save image file to byte array. I am sending the image file to the server as base64. and convert to jpg. but i don't know how to convert to bytearray from jpg
$base=$_POST["image"]; $binary=base64_decode($base); $file = fopen("image.jpg", "w"); fwrite($file, $binary); fclose($file);
source share