HTTP_RAW_POST_DATA mime help?
Posted: Wed Oct 13, 2010 7:15 am
I am not sure if I can pull this info from a HTTP post without needing to base64 encode, I am trying to do this all without the need to write a file to disk.Any help would be greatly appreciated
Code: Select all
<?php
if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
$im = $GLOBALS["HTTP_RAW_POST_DATA"];
} else {
echo 'result=error';
exit;
}
$image = ($im);
$i = new Imagick($image);
$i->setImageColorspace(Imagick::COLORSPACE_CMYK);
$i->setImageFormat('jpg');
echo ($i);
?>