Results 1 to 2 of 2

Thread: Hessian with large binary data

  1. #1
    Join Date
    Oct 2004
    Location
    singapore
    Posts
    11

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    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 at 10:19 AM.

Similar Threads

  1. Transfer large files via Hessian
    By pwyngaard in forum JMS
    Replies: 2
    Last Post: Nov 7th, 2005, 04:33 PM
  2. Replies: 1
    Last Post: Aug 31st, 2005, 04:18 AM
  3. Multiple Data Sources + Hibernate + Spring
    By joeserel in forum Data
    Replies: 2
    Last Post: May 18th, 2005, 09:22 AM
  4. Replies: 3
    Last Post: Apr 21st, 2005, 03:19 PM
  5. injecting complex configuration data
    By fox9 in forum Container
    Replies: 2
    Last Post: Feb 25th, 2005, 07:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •