PDA

View Full Version : Hessian with large binary data


kotesh
Oct 5th, 2004, 09:36 PM
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.

Alef Arendsen
Oct 6th, 2004, 04:46 PM
For info in the Hessian API itself, have a look at www.caucho.com. Hessian usage with Spring is usually done using the HessianServiceExporter in combination with the HessianProxyFactoryBean. Have a look in the remoting docs to see how that works. Also have a look at the following post:

http://forum.springframework.org/showthread.php?t=10703=