Which is a better c++ container for holding and accessing binary data?
std::vector
or
std::string
If you just want to store your binary data, you can use bitset which optimizes for space allocation. Otherwise go for vector, as it's more appropriate for your usage.
vector