[Pharo-users] What is your preferred way for storing ByteArray's as text?
Sven Van Caekenberghe
sven at stfx.eu
Thu Oct 29 11:44:08 EDT 2015
> On 29 Oct 2015, at 16:35, Esteban A. Maringolo <emaringolo at gmail.com> wrote:
> Hello all,
> As some already know I'm working in the new GLORP port from VW to Pharo.
> And as part of minor modifications I'm making to the code, I'd like to know what is your preferred way of storing ByteArrays as text representation/CLOB, etc...
> Option A) The printString of ByteArray, it is #[23 12 253 ...]
> Option B) A Base64 encoded version of the ByteArray
> Option C) Some other encoding
Does that not dependent, at least in part, on the actual underlying SQL DB ?
I think HEX and Base64 are make the most sense.
> I posted the same question in the #databases channel at Pharo's Slack team (https://pharoproject.slack.com/archives/databases/p1446130304000022)
> Esteban A. Maringolo
More information about the Pharo-users