I have a
std::vector<unsigned char> data;
which contains a binary read file.
If I write it to
std::ofstream outputFile("file", std::ios_base::binary);
I'll see a regular text in it. Then I can read it into std::string which will conatain the text. Is it possible to copy vector directly to string with the same result?