ByteArray to FileReference
I know I can use this to save ByteArray data to disk:
Actionscript Code:
var ba:ByteArray = new ByteArray;
ba.writeUTFBytes('<?xml version="1.0" encoding="iso-8859-1"?>\n'+text)
var fr:FileReference = new FileReference(ba);
fr.browse(new Array(new FileFilter("XML (*.xml)", "*.xml;")));
fr.save( ba, 'ticker.xml' );
...But is it possible to use the upload() method to write the same ByteArray to a server?
Actionscript Code:
var request:URLRequest = new URLRequest("http://www.[domain].com/uploader_script.php")
fr.upload(request);
Thanks all.