How can I do that?
I have a Flash application that allows the user to send an image via e-mail. Actionscript uses its ByteArray class in order to send the image pixels as raw post data.
Once they arrive to PHP, these data can be retrieved through $GLOBALS['HTTP_RAW_POST_DATA'] or better by using php://input (or that's what I read), and as I checked in another similar case, they don't need any processing with the functions of the GD module because they can be parsed as JPG binary data doing something like: header('Content-Type: image/jpeg');
But.... that's all I know so far. I've been investigating to find out what to do with the retrieved data so that I can send it via mail as an attached JPG file, but I have a lot of vague ideas all messed up in my head, and I cannot clear anything up.
Maybe I have to write in the mail() headers something like:
Content-Type: image/jpeg;
Content-Disposition: attachment; filename="image.jpg"
but... just what I said. I'm still off the track.😕
Any suggestion please?