I\'ve been writing a little application that will let people upload & download files to me. I\'ve added a web service to this applciation to provide the upload/download fun
Yes, it is possible with Metro. See the Large Attachments example, which looks like it does what you want.
JAX-WS RI provides support for sending and receiving large attachments in a streaming fashion.
- Use MTOM and DataHandler in the programming model.
- Cast the DataHandler to StreamingDataHandler and use its methods.
- Make sure you call StreamingDataHandler.close() and also close the StreamingDataHandler.readOnce() stream.
- Enable HTTP chunking on the client-side.