开发者

persist image or video into voldemort

开发者 https://www.devze.com 2022-12-25 15:37 出处:网络
I am working on my web service, and required to persist some image (jpg whatever) and video(wmv) into memmory. Just w开发者_StackOverflowant to use single_node_cluster to feel voldemort.

I am working on my web service, and required to persist some image (jpg whatever) and video(wmv) into memmory. Just w开发者_StackOverflowant to use single_node_cluster to feel voldemort.

Can anybody give me a hint of the configuration and sample code of voldemort? I mean how to configure the value type in stores.xml? protobuf? java-serialization?

Any sample or link would be helpful. Thanks


sample code is here. The same code is also in SAMPLE folder of voldemort installation.

Regarding image store in voldemort, you need to encode the image using base64encoding and then save the text generated in to the value.

0

精彩评论

暂无评论...
验证码 换一张
取 消