How to get a bytearray from file stream in Adobe AIR?
- by Ole Jak
How to get a bytearray from file stream in Adobe AIR?
So I have a function
protected function fileOpenSelected(event:Event):void
{
currentFile = event.target as File;
stream = new FileStream();
stream.openAsync(currentFile, FileMode.READ);
}
How to get a full bytearray from stream to use it as normal bytearray?