|
From: Andy D. <an...@ma...> - 2005-08-11 23:52:37
|
I've extended Spring's HttpInvoker to provide support for InputStream parameters and return values for remote service methods. I've posted detailed information along with sources and unit tests in this JIRA issue: http://opensource.atlassian.com/projects/spring/browse/SPR-1223 To elaborate a little: this allows you to define a service method to take an InputStream as a parameter or return an InputStream as a return value (or both) and Spring will take care of ensuring the InputStream is streamed across the wire. Of course, the major reason for doing this is to handle large amounts of data without needing to load all the data into memory first, so care is taken to ensure that the InputStream is not fully buffered into memory. See the JIRA issue for more information. - Andy |