Upload Sound Files to Cassandra Server?

422 Views Asked by At

is it possible to upload sound files to the Cassandra server through Python, and then retrieve them again? If so, how would I go about doing it? I'm not to familiar with how Cassandra works, so any input would be greatly appreciated.

In addition, I am using pycassa as my python driver.

Thank you.

1

There are 1 best solutions below

1
Carlo Bertuccini On

Yes, you can do this -- what you need is an hex representation of your song bytes. Take care on your blob size, from official documentation

"A single column value may not be larger than 2GB; in practice, "single digits of MB" is a more reasonable limit, since there is no streaming or random access of blob values. "

HTH, Carlo