March 21, 2011
8:52 p.m.
On Mar 21, 2011, at 9:42 PM, Sven Van Caekenberghe wrote:
Hi,
It took me quite some time today to figure this out and it might be relevant for others too:
it turns out that String>>#base64Encoded introduces newlines which you definitively do not want when doing Basic HTTP Encoding for example. The tricky part is that it works when you stay below a certain length.
when would it makes sense?
This can easily be solved by invoking Base64MimeConvertor with the #mimeEncode: <string> multiLine: false
Zinc HTTP Components now does this consistently through ZnUtils class>>#encodeBase64:
Sven