Whew. Usually when typing code into email, I get something wrong.
Glad to hear you were lucky. On Mon, Jul 4, 2011 at 8:13 PM, Paul Rimba <[email protected]> wrote: > Thanks for that Ted! it works perfectly > > On Sun, Jul 3, 2011 at 2:16 AM, Ted Dunning <[email protected]> wrote: > > > Just include all of the bytes from the file. If you use the very nice > > guava > > library, this can be done so: > > > > zk.setData(Files.toByteArray(new File(configFileName)), false, > > null); > > > > On Sat, Jul 2, 2011 at 1:31 AM, Paul Rimba <[email protected]> wrote: > > > > > hmm.. it does return the string. However, i wanted to store a whole > > > configuration files in the znode. > > > Mahadev asked me to build a tool which i am not sure how to as i am > still > > a > > > newbie on zookeeper. > > > > > > If you could point out how to do it, it would be best. > > > > > >
