On 20.10.2010 10:46, Henrik Sperre Johansen wrote:
 On 20.10.2010 09:50, nullPointer wrote:
I use the same procedure than embed images, but I don´t understand the great
difference of size. :|
You're storing a ByteArray which stores 256bits per byte as a base64 string, which stores 64bits per byte.

Wow, still early in the morning here... :)
Ofc ,for binary input, a byte in a ByteArray stores the full 8 bits per input byte, while a byte represented in base64 string format stores 6 bits per input byte.
Which means 25% overhead compared to raw binary data.

Cheers,
Henry

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to