cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject blob fields, bynary or hexa?
Date Wed, 18 Apr 2012 10:02:34 GMT

  We're building a database to stock the avatars for our users in three sizes. Thing is,
We planned to use the blob field with a ByteType validator, but if we try to inject the 
binary data as read from the image file, we get a <cannot parse as hex bytes> error.
same happens if we convert the binary data to its base64 representation. So far the only 
solutions we found is to actually convert the binary data to its 'string of hexa 
representations of each byte', meaning that each binary byte is actually stocked as two 
'ascii bytes'; or, on the other hand, convert to bas64 and store it in a ascii column.
Did we miss something?

Marcos Dione
Astek Sud-Est
04 97 12 62 45 -


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees
et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par
erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant
susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may
be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message
and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been
modified, changed or falsified.
Thank you.

View raw message