I want to upload data (not a local file) with Flex (4.1), and show what the progress is of the bytes sent.
Now I use a URLLoader, but I know that URLLoader was designed to download data, I can connect a listener to ProgressEvent.PROGRESS but that has no effect.
I also know there is a FileReference object which supports uploading. The problem here is, I do not want to browse for a file and upload it. I have a byte array which I want to send to the server, but the data property of FileReference is read-only.
So my question is: How can I send the byte array (which is actually a PNG encoded image) to the server and be able to track the progress of the bytes sent to server?