How to perform encoding of a wave file into base64 encoding in AS3
I need to perform e开发者_如何学运维ncoding of a wav file into base64...
You can use the mx.utils.Base64Encoder
(see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/utils/Base64Encoder.html).
First you need to convert your wav into a bytearray
and then use Base64Encoder.encodeBytes()
.
An even faster version here: http://www.sociodox.com/base64.html
精彩评论