
Код AS3:
private function sendImage(png:ByteArray):void
{
var request:URLRequest = new URLRequest("scripts/downloadImage.php" );
request.data = png;
request.method = URLRequestMethod.POST;
navigateToURL( request, "_blank" );
}

PHP код:
<?php
header('Content-disposition: attachment; filename=myImage.png');
header("Content-type: application/png");
readfile('php://input');
?>
я так пнг открывал, правда давно это было.
png - это уже заенкоденный байтаррай.