I\'m currently using the JPGEncoder from the AS3 core lib to encode a bitmap to JPEG
JPGEncoder
var enc:JPGEncoder = new JPGEncoder(90); var jpg:ByteArra
Setting up the encoder to be asynchronous would likely be your best bet.
Here are two examples from Adobe
This example is with actionscript/flex, but its the same idea.