Caucho Forums  

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

Go Back   Caucho Forums > Hessian

Thread Tools Display Modes
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

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

// Download Java Code
InputStream is ="test.xml"

try {
... // read data here
} finally {
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

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:37 PM.

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