tags:

views:

159

answers:

2

Can Riak be used to store images or binary data? It seems to only be able to store JSON documents, is this a correct assumption?

+2  A: 

No, Riak can store arbitrary data. The jiak interface expects JSON with a certain "schema" however.

z8000
+3  A: 

As z8000 said, Riak can store any data you like. If you're using the Erlang interface, just set the value of the riak_object to whatever you want to store.

If you're using HTTP, point your client at the "raw" interface: http://hg.basho.com/riak/src/tip/doc/raw-http-howto.txt It allows you to store data and serve it with whatever content type you like.

Bryan