hola: en AS3 / Flex var urlExcelExport:String = " http://midominio.ar/php/create.php?name=mypdf.pdf&method=inline"; var variables:URLVariables = new URLVariables(); var bytes:ByteArray = myPDF.savePDF(Method.LOCAL); var u:URLRequest = new URLRequest(urlExcelExport); u.contentType = "application/octet-stream"; u.method = URLRequestMethod.POST; u.data = bytes; navigateToURL(u,"_blank");
en PHP el create.php <?php $method = $_GET['method']; $name = $_GET['name']; $RAW_POST_DATA = file_get_contents("php://input"); if ( isset ( $RAW_POST_DATA )) { $pdf = $RAW_POST_DATA; //$pdf = $GLOBALS["HTTP_RAW_POST_DATA"]; if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') ) { if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Windows 98') ) { header("Pragma: public"); header("Expires: 0"); // set expiration time header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Type: application/pdf'); header('Content-Length: '.strlen($pdf)); header('Content-disposition: attachment; filename="'.$name.'"'); } else { header('ETag: etagforie7download'); //IE7 requires this header header('Content-Type: application/pdf'); header('Content-Length: '.strlen($pdf)); header('Content-Disposition: inline; filename="'.$name.'"'); header("Content-Transfer-Encoding: binary"); } } else { header('Content-Type: application/pdf'); header('Content-Length: '.strlen($pdf)); header('Content-disposition:'.$method.'; filename="'.$name.'"'); } echo $pdf; } else echo 'An error occured.'.$name; ?> funciona ok 2014-05-16 19:27 GMT-03:00 diamondschedu...@yahoo.com [flexcoders] < flexcoders@yahoogroups.com>: > > > Also this thread: > > https://forums.adobe.com/thread/1474415 > > > > > -- saludos edgardo