espandy / memcache-client-forjava

Automatically exported from code.google.com/p/memcache-client-forjava
0 stars 0 forks source link

Problem regards Storing files inside Memcached server? #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HI,

I having an input file(.JSON,.jpg,.txt,etc..).That file i need to store into 
memcached server.
I don't want to convert file to byte[] before passing to memcached server.
If any possibility to store file inside Memcached server?
I am using spymemcached tool.

Example:

MemcachedClient mc=new MemcachedClient(new 
InetSocketAddress("192.168.7.104",11211));  
File file=new File("D:\\test.txt");
mc.set("Key1",3600,file);
mc.get("Key1");

Plz replay if any sollution..
Thanks in Advance..
Sekhar.

Original issue reported on code.google.com by msekhar...@gmail.com on 6 Nov 2013 at 7:56