Encode audio ByteArray as mp3

I’m recording audio in a Flash app and need to encode the bytearray being sent to the server. I haven’t found a good encoder (client-side) to compress the bytearray before sending. Any pointers appreciated, thanks.