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.
>