Are there any STL containers that seem to be well-suited for using as BLOBs for database software? I would think a vector<char>, but is there something better? Maybe a std::string? Or some non-STL container?
Are there any STL containers that seem to be well-suited for using as BLOBs
Share
The
BLOBtype of databases allows storage of binary data, so you need an ordered collection of bytes. The easiest choice would be avector<>and you could choseunsigned charto represent a byte on most platforms