Filereference load() method works i.e loading image as bytearray.
My goal was to using upload() i.e. send image directly to php file , but this is not implemented.
There is way to do it, using load() and after that , this AS3 implementation https://gist.github.com/zhouji/4303867
Maybe something like this could be implemented in OpenFL.
Well, that was the other solution - to use Base64 to encrypt data and send it via POST .
But at the moment I have flash and html5 version using by clients, so my wish was not to change php file ( i.e.with adding additional logic ). Also upload from html form is not straight POST query , it should sent form data - Filedata , boundary , linebreak) as it’s implemented in upload.as file/
In Flash have upload function, so my goal was to use same functionality.