Hello Hessian Users,
 
Can someone give me a simple example how to download a file using a
Hessian Servlet (Hessian 3.1.3) via an InputStream.
 
The documentation is very thin here and what little there is does not
make sense. If I want a client to be able to call
 
Public InputStream getFile(int fileId)
 
I would have thought in the Hessian Servlet I would need to implement a
method of the form
 
Public ?? getFile(int fileId, OutputStream os)    - (I put ?? since I am
unsure what the method should return since it will write the return data
to the given Output Stream)
 
I assume Hessian would need to pass in the OutputStream for you to write
your file to so that the client can pick this up via the InputStream. I
must admit in the Hessian Server I have no idea what the method getFile
should return.
 
Can someone enlighten my misunderstanding please!!
 
 
Best Regards
Paul
 
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to