Convert CCSprite to Raw Data

i want to convert sprite into byte array actually i want to send image from cocos2dx to android but i dont get the right solution from any where i have ccpsrite and i want to send it to java using JNI how could i send i think i need to convert it to byte array but i dnt get the solution how i convert ccsprite to byte array

anybody help me ?

Have a look at this post http://www.cocos2d-x.org/forums/6/topics/13787.