I am new to using Poco and I am having some trouble with using Base64EncoderBuf. I was originally using Base64Encoder which was working for me, but I want to get rid of the new line characters that get inserted and it look like you need to use Base64EncoderBuf, calling setLineLength(). It was working when I had the following...
- Code: Select all
std::copy(std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>(), std::ostreambuf_iterator<char>(encoded));
I tried replaced Base64Encoder with Base64EncoderBuf, but I can no longer use the std::ostreambuf_iterator in the std::copy() method (inheritance between two different Base64Encoder classes is different). I can't seem to find an appropriate iterator to get this to work. Could someone point me in the right direction? It's possible I can no longer use it this way, so any pointers would be greatly appreciated. I've looked around and I couldn't find any examples using the Base64EncoderBuf class, only the Base64Encoder class.
Thanks for the help.