[Pharo-users] What is your preferred way for storing ByteArray's as text?

Esteban A. Maringolo emaringolo at gmail.com
Thu Oct 29 18:48:34 EDT 2015


2015-10-29 17:59 GMT-03:00 Bernardo Ezequiel Contreras <vonbecmann at gmail.com>:
> On Thu, Oct 29, 2015 at 5:18 PM, Esteban A. Maringolo <emaringolo at gmail.com>
> wrote:
>>
>> 2015-10-29 17:07 GMT-03:00 Bernardo Ezequiel Contreras
>> <vonbecmann at gmail.com>:
>> > Esteban,
>> >   Could you explain line 8 ? why did you use a Base64MimeConverter?
>> > thanks.
>> >
>> > line 8:
>> >
>> > stream nextPutAll: 'ZnBase64Encoder '; nextPutAll: [
>> > (Base64MimeConverter
>> > mimeEncode: ba readStream multiLine: false) ] bench printString; cr.
>>
>> Because it is the class used by ByteArray>>#base64Encoded.

> thanks, so the title should be Base64MimeConverter instead of
> ZnBase64Encoder.


No... I got it wrong, it was a copy & paste mistake. It should be
Zn... because I put them both in the tests to compare.

Thank you for noticing.

Regards!


Esteban A. Maringolo




More information about the Pharo-users mailing list