examples of persisting java objects in voldemort.as well as configuration.
I am curious why online examples are few. thanks
moved and formated from a comment by the OP:
e.x I want to persist a jpg file in my web service. here is my code
File img = new File("a.jpg");
DataSource ds = new FileDataSource(img);
DataHandler dh = new DataHandler(ds);
ByteArrayOutputStream s = new ByteArrayOutputStream(100000);
try{
dh.writeTo(s);
}
catch(IOException ioe){
ioe.printStackTrace();
}
StoreClient<String, ByteArrayOutputStream> client = factory.getStoreClient("test");
client.put("key", s);
ByteArrayOutputStream cannot be cast to java.lang.String can anybody tell me why? I edit my stores.xml file