import mx.controls.Image;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flash.utils.describeType;
function resultHandler(event:ResultEvent):void {
var img:Image = new Image();
var byteLoader:Loader=new Loader();
var byteArray:ByteArray=new ByteArray();
byteArray.writeUTFBytes(event.result as String);
byteLoader.loadBytes(byteArray);
var bitMap:Bitmap=Bitmap(byteLoader.content);
img.source = bitMap;
myVBox.addChild(img);
}