Fail to load Image using CCImage::initWithImageData in android platform

hi all,

I have encountered a problem when using CCImage::initWithImageData to create an image for CCTexture.

Here is the code: It works in iOS platform (iPhone Simulator)

@
CCImage* image = new CCImage();
bool flag;
flag = image->initWithImageData(data, fileSize, CCImage::kFmtPng);
CCLOG (“BigFileTest: CCImage flag=%d”, flag);
@

Please Help

Regards,
ken