28 Sep
2011
28 Sep
'11
7:15 p.m.
I followed a recipe for using Boost libraries to perform a base64-encoding of some data, as explained here (http://stackoverflow.com/questions/7053538/how-do-i-encode-a-string-to-base6...). However, it gives the wrong result. For example, I expect a string to end with "…8EAA==" and instead I get a total length two chars shorter, ending with "…8EAM". More use of google turns up that boost::archive::iterators::base64_from_binary only works for inputs that are a multiple of three bytes, and I can't find any proper documentation on how to use this. Is there function that wraps base64_from_binary that works on any input? Or is it not worth trying to use this Boost library at all? Thanks, —John
4796
Age (days ago)
4796
Last active (days ago)
0 comments
1 participants
participants (1)
-
John M. Dlugosz