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:[email protected]]
????: 2009?12?15? 21:27
???: [email protected]
??: 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 <[email protected]> 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