Hi Guys, it looks like we have a conversation problem between both APIs.
First i wrote with riak-erlang-client to the riak: {ok,Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087), Tuple = "{\"id\",22}", Obj = riakc_obj:new("mm","1",Tuple), riakc_pb_socket:put(Pid,Obj), After then we try to read from risk-java-client: RiakClient httpClient = new RiakClient("http://10.10.10.61:8098/riak"); IRiakClient client = RiakFactory.httpClient(httpClient); Bucket b = client.fetchBucket("mm").execute(); IRiakObject fetched = b.fetch("1").execute(); String decodedString = new String(fetched.getValue()); System.out.println(decodedString); I convert the Object to an HexString: 83 6B 00 05 7B 22 6E 22 7D My question is: 1. What are the first 4 bytes ? 2. how can i receive a string with out the 4 bytes ? 3. How can i convert the string into a JSON Object ? Thanks for your help Best Marcel
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com