Announcement Announcement Module
Collapse
No announcement yet.
Hessian with large binary data Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hessian with large binary data

    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.

  • #2
    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/sho...d.php?t=10703=
    Last edited by robyn; May 14th, 2006, 11:19 AM.

    Comment

    Working...
    X