String>>#base64Encoded

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

String>>#base64Encoded

Sven Van Caekenberghe
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.

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

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside