大家好,
在2.1.4版?,要??案?伺服端存??片?,
我?用
// dump data
std::vector<char> *buffer = response->getResponseData();
CCImage* image = new CCImage();
image->initWithImageData(&(buf->front()),buf);
image->saveToFile(create_fully_path.c_str());
但是今天在3.0版cocos2d已?initWithImageData()?接收的??型?改?
const unsigned char * data
??是否有C++高手指?要如何?buffer放入initWithImageData()??
??