我有一个bitmapdata对象,我想在内存中将它编码为gif、jpg或png字符串。我在AS3中看到过使用bytearray执行此操作的代码。在AS1/2中是否有现有的代码来执行此操作?
编辑:为了澄清,我知道我可以将原始位图数据发送到服务器进行编码,但这是最后的手段。有了这个问题,我正在寻找一种完全在Flash中实现这一点的方法。
http://www.flash-db.com/Tutorials/snapshot/index.php