如何让 Riak 存储图像或二进制数据?

发布于 2024-08-19 21:39:39 字数 55 浏览 2 评论 0原文

Riak 可以用来存储图像或二进制数据吗?它似乎只能存储 JSON 文档,这是一个正确的假设吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酸甜透明夹心 2024-08-26 21:39:39

正如z8000所说,Riak可以存储你喜欢的任何数据。如果您使用 Erlang 接口,只需将 riak_object 的值设置为您想要存储的任何值。

如果您使用 HTTP,请将您的客户端指向“原始”接口: http://hg.basho.com/riak/src/tip/doc/raw-http-howto.txt 它允许您存储数据并以您喜欢的任何内容类型提供数据。

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.

水波映月 2024-08-26 21:39:39

不,Riak 可以存储任意数据。然而,jiak 接口需要具有特定“模式”的 JSON。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文