I am doing project on Image steganography. First i read the string. Then, I convert it to binary using below code.
for(std::size_t i=0;i<str.size();i++)
{
cout<<(bitset<8>(str[i]));
}
the ouput is binary format. But i need to save the binary format of complete string(not each character) to access each bit of the string to hide it in image. HOw to concatenate the multiple bitsets. Please help me....