HTTP_RAW_POST_DATA questions
Posted: Fri Jan 15, 2010 4:18 pm
Hey,
I am saving an image from a flash application I have created,
It works but I want to be able to draw an image and embed it in my html file:
Can I use like the gd library or something so I can embed it like: <img src="asjhlfd" />
And then put a button to download it?
I am saving an image from a flash application I have created,
It works but I want to be able to draw an image and embed it in my html file:
Code: Select all
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
// get bytearray
$jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
// add headers for download dialog-box
header('Content-Type: image/jpeg');
header("Content-Disposition: attachment; filename=".$_GET['name']);
echo $jpg;
}
And then put a button to download it?