I have a block of binary data defined as:
void* address, size_t binarySize;
that I want to store to a MySQL database using MySQL C++ Connector.
The function setBlob() takes istream.
The question:
How can I convert from a raw void* address, size_t binarySize to either an istream object or istringstream? Is it possible to do this without "copying" the data? i.e. tell istream the pointer and the size so that it could point to it.