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.
精彩评论