Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Hessian

Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2012, 10:28 AM
htw htw is offline
Junior Member
 
Join Date: Sep 2010
Posts: 2
Question Working sample code for implementing a web service download method

I had tried to implement such a download method but failed. I referred to the section "Hessian with large binary data" on document page http://hessian.caucho.com/doc/hessian-overview.xtp.

Quote:
// file download API
public interface Download {
public InputStream download(String filename, InputStream data);
}

// Download Java Code
InputStream is = fileProxy.download("test.xml"

try {
... // read data here
} finally {
is.close();
}
The number of arguments of method download is not the same. Why?

What is the 2nd argument, InputStream data, used for? Why is it needed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.