Pay attention to base64_decode in http://www.adp-gmbh.ch/cpp/common/base64.html
base64_decode
std::string base64_decode(std::string const& encoded_string)
Yes, you can store any sequence of char in a std::string. That includes any binary data.
char
std::string