I am using Couchbase and testing it on my local computer with ASP.NET. I’ve inserted some data into a sample document and I can read the data using ASP.NET C# Driver for Couchbase. The thing is that when I logged in to the cluster management GUI and look at the document, I get to see lots of characters with no meaning, can’t actually see a text representation of the document that I’ve inserted. With MongoDB, BigCouch, RavenDB the data is plain and simple JOSN document and its easy to update a single document. Am I missing something here?
In my .NET application I have this code:
var client = new CouchbaseClient();
client.Store(StoreMode.Add, "aaa", "sample_data");
client.Dispose();
What I get is in the console when I view the document:
"Y29tcGFyaXNvbl9pZDogMQ=="
This is a binary format, not JSON. Using CouchBase 2.0 beta
It’s a bug of Couchbase 2.0 GUI display.Now I use couchbase-server-2.0.0-1723.x86_64 in RHEL 6.0,and create new document with Coubase 2.0 GUI.When I insert under json:
,then save while list base64 string:
I can follow this post:base64 value display in GUI (Beta 2.0),to fix javascript code in this path:
Fianlly,Clean the browser cache and login Couchbase 2.0 GUI agian.The documents will display:
It’s corrent.