I have a memory block (opaque), that I want to store in a Blob in mySQL through their C++ adapter. The adapter expects a istream:
virtual void setBlob(unsign
Untested but perhaps worth a test...
std::stringstream ss; ss.write( blockPtr, blockLength ); ss.seekg(0);
Then call that setBlob function with ss. Your still have that internal buffer in std::stringstream as jalf already mentioned though.