You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by ma...@gmail.com on 2009/12/16 05:36:10 UTC
??: how to transfer large data?
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;
test.append("this");
printf("length of test is %u\n",test.length());
test.push_back('0');
test.push_back('0');
test.push_back('0');
printf("length of test is %u\n",test.length());
}
length of test is 4
length of test is 7
-----????-----
???: Jonathan Ellis [mailto:jbellis@gmail.com]
????: 2009?12?15? 21:27
???: cassandra-user@incubator.apache.org
??: 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 <pa...@sina.com> wrote:
> hi,
> I want to use the Cassandra to store pictures(about 100k ~ 3M). I don't
know
> how to write the client, because I find the value's type in the Column
class
> 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