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
Boost.IOStreams has a stream that works like a stringstream, but wraps a native array, so you avoid having to copy the data.
std::stringstream always creates its own internal buffer