Pass Unity screenshot to Flash

Is this possible?
I’ve been trying to pass as: byte bytes = screenShot.EncodeToPNG();
but Flash receives as CLIObject and if I try to use as ByteArray it returs as a null obj.

[solved]
a friend just found an easy way of doing that.

var bmp:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight, false);
stage.stage3Ds[0].context3D.drawToBitmapData(bmp);