I could not understand how to implement this....Can anybody help me..

Hessian with large binary data
----------------------------------
OutputStream os = conn.getOutputStream();

HessianOutput out = new HessianOutput(os);
out.startCall("download");
out.writeString("my-file.txt");
out.completeCall();

InputStream is = conn.getInputStream();

HessianInput in = new HessianInput(is);

in.startReply();

InputStream is = in.readInputStream();

... // save the input stream data somewhere

in.completeReply();

Thank You.