Hi,
The Hessian documentation suggests that the protocol can be used to
upload large objects from the server (while giving an example of
downloading large content). Does anyone have an example of the client
and server code? If I wanted to send a serialized object then a
binary stream, would the server-side code look like this?:
HessianInput in = new HessianInput( request.getInputStream() );
in.startCall();
Content content = (Content) in.readObject();
InputStream data = in.readInputStream();
// save content and stream to database, set id of content
in.completeCall();
HessianOutput out = new HessianOutput( response.getOutputStream() );
out.startReply();
out.writeObject( content );
out.completeReply();
How could I contact a Spring controller (or simply a servlet)
containing this code from the client? The example for client download
show it calling out.startCall("download"), but I don't see how this
maps to a path on the server side.
Thanks much for any advice,
Alex Cruikshank
CarbonFive
Received on Mon 18 Apr 2005 11:59:06 -0700
This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT