Search code examples
javauploadbinarycassandrakundera

Cassandra and binary files


I'm working in a software files manager in Java with Cassandra DB. My database is working, and I did successfull queries using Kundera.

But now, I search for upload binary files (blob, or just files ?) in Cassandra. I tried this methods :

  • Create an var in my entity in type : File, but its not working.
  • Convert File into Byte[] and put an Byte[] in my entity but still not working, my Byte[] return is null !!

Do you have an idea for up small files in Cassandra database?

I hope my english is understandable...
Regards


Solution

  • Please have a look at http://www.datastax.com/dev/blog/bulk-loading.

    Not sure, but converting a file into byte[] may not work as you might need to open an byte stream to process it successfully.