incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Lebresne <sylv...@datastax.com>
Subject Re: Insert via CQL
Date Sat, 03 Nov 2012 19:25:01 GMT
On Sat, Nov 3, 2012 at 1:40 AM, Eric Evans <eevans@acunu.com> wrote:
> On Fri, Nov 2, 2012 at 8:09 PM, Vivek Mishra <mishra.vivs@gmail.com> wrote:
>> any idea, how to insert into a column family for a column of type "blob" via
>> cql query?
>
> Yes, most of them involve binary data that is hex-encoded ascii. :)

Unless you are using prepared statement. In which case you just send
you blob as binary. But for non-prepared queries, you do have to
hex-encode indeed (meaning that if you do use blobs, especially
largish one, I highly recommend using prepared statements).

--
Sylvain

Mime
View raw message