Binary string class is needed to collect and manipulate binary streams of data.
This essentially means the string (or stream) can contain an arbitrary number of elements (binary data; bits), which could represent anything and you can change those by using the class.
These data streams can represent anything from image data to the contents of objects.
You can do with a stream whatever you want (usually only limited by implementation). For example, you can load raw image data into a stream object and then read single bytes. You could as well write single characters to a stream (or array) and save it as raw image data. The elemental string/stream doesn't limit you to any single interpretation. Instead the actual implementation/interface defines this part.
Here author also mentioned it is like object streaming or object persistance.
"Object streaming" here refers to transfering something. E.g. sending data over a network or port (e.g. using it as a buffer to send or receive data). "Object persistance" refers to keeping something (letting it persist) even while your program isn't running anymore (loading/saving).
Essentially, pretty much any stream as well as the containers available in the STL are already what the author considers a binary string. The difference is just the grouping, e.g. are you able to access/read/write single bits or just bytes/words/whatever?
To get a real "bit stream", you could just use something as simple as std::vector<bool>. This allows you to store boolean values, but you might as well read them as something different (e.g. reading them blockwise by casting the contents to an array of integers).
But I'd say something as simple as a std::stream would even better match the description of the author: It can be used to keep persistent data, it can be used to transfer data and it can be used to store/load data in different formats/interpretations. For example, you can write single bits or bytes and later on read them as an integer or even a string.
fstreamalready is?serializationinstead ofobject streaming