Hi!, we need to send a XML file to our Flex client, and we decided to do with AMF instead of URLLoader/URLRequest because with these functions the xml file is stored in the “Temp” folder of th browser, and for security reasons we don´t want this.
I have installed AMFPHP in the server, and created a service with this simlpe code:
function recibe($sMessage)
{
$archivo = "playlist.xml";
$fp = fopen($archivo, "r");
$contents = fread($fp, filesize($archivo));
return $contents;
}
but I think that this is not an efficient way to send the data in the .xml file, and in the test I made, the time of send all the data (playlist.xml size is about 700kb) is the same than send via URLLoader/URLRequest…
It´s the first time that I work with AMF, can you tell me any tip or suggestion to send the entire structure of a xml file?
and lastly,** there is any way to compress the data that the service send to Flex client? **
THANKS!