Quick question. Here is a piece of code that WORKS and outputs a given image:
Code: Select all
<?php
header('Content-Type: image/jpeg');
echo base64_decode($_POST["image"]);
?>Code: Select all
<?php
header('Content-type: image/jpeg');
$image = base64_decode($_POST["image"]);
imagejpeg($image); //imagejpeg($image, 'simpletext.jpg');
imagedestroy($image);
?>Thanks for any help.