cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: how to transfer large data?
Date Wed, 16 Dec 2009 04:50:24 GMT
As far as I know, std::string can deal with "string with unprintable char in
body", aka "binary"

#include <string>
#include <cstdio>
int main()
        std::string test;
        printf("length of test is %u\n",test.length());
        printf("length of test is %u\n",test.length());

[root@xxxxx tmp]# ./a.out 
length of test is 4
length of test is 7

-----Original Message-----
From: Jonathan Ellis [] 
Sent: Tuesday, December 15, 2009 9:27 PM
Subject: Re: how to transfer large data?

really, "binary" to thrift C++ is std::string?

that doesn't make much sense to me, but I don't know C++...

On Mon, Dec 14, 2009 at 11:16 PM, XL.Pan <> wrote:
> hi,
> I want to use the Cassandra to store pictures(about 100k ~ 3M). I don't
> how to write the client, because I find the value's type in the Column
> is std::string.
> How can I deal with this?? My key type is int and value type is raw
> data(about 120K). Thanks! :-)
> 2009-12-15
> ________________________________
> XL.Pan

View raw message