How to get a bytearray from file stream in Adobe AIR?

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-05-27T13:54:15Z Indexed on 2010/05/27 15:51 UTC
Read the original article Hit count: 224

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about file

Related posts about actionscript