开发者

How to store photos in Cassandra?

Can anybody tell me how to stor开发者_如何学JAVAe photos (jpg, png etc) files in cassandra ? Any small example would give me quick start.


"Manually split files into chunks of whatever size you are comfortable with". (from CassandraLimitations)

Eg. use the file name as the row key and have the chunks as columns.


Using Asytanax Client (Netflix) you can store large files. Take a look at the link below - https://github.com/Netflix/astyanax/wiki/Chunked-Object-Store

You can specify the chunk size that the files would be split into.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜