且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从文件流在Adobe AIR的ByteArray?

更新时间:2023-10-27 17:32:52

不点一的FileStream ,你没有一个正常的的ByteArray ,但异步读?它实现 的IDataInput ,让您可以从它只要方bytesAvailable 是更大的阅读比0。

isn't the point of a FileStream that you don't have a normal ByteArray, but read asynchronously? It implements IDataInput, allowing you to read from it as long as bytesAvailable is bigger than 0.

这是每一个进步事件,你只需的ReadBytes 到输出的ByteArray ,一旦你得到一个完整的事件,你可以使用它。

on every progress event, you can just readBytes into an output ByteArray and once you get a complete event, you can use it.

格尔茨
back2dos

greetz
back2dos