BitmapData through Localconnection

hi

can anyone tell if how i can pass a bitmap data through a local connection in as3.0 and get it on the other end intact ? example is appreciated.