I had to separately record the number of bytes.  Then when I decode, just pull off that number of bytes.
 
Robert Ramey
 
"Eames, Andrew" <andrew@cognex.com> wrote in message news:8F37BF6F420455468C4BD57DD6BE199004C613F8@cobra.pc.cognex.com...

Hi,

I’m trying to encode base64 data by composing base64_from_binary with transform_width but this doesn’t appear to work correctly when the data is not a multiple of 3 long. What is the correct way to handle this  - do I have to handle the padding myself by extending the input data and then patching the tail of the result?

   Thanks

       Andrew

 


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users