Cube 00
2018-09-22 10:39:08 UTC
Is there anyway to get Apache CXF to download an attachment straight to the target location without going via /tmp first?
We have MTOM enabled on both the client and server and the server seems to be able to stream the request out using this solution [1].
However the client still first downloads to the /tmp in the proxy web service call which means by the time we get a first look at the response object (to get the DataHandler) the file has already been downloaded to /tmp.
Is there some way we can make CXF defer the download and give me a stream connecting to the network stream?
[1]: https://stackoverflow.com/a/33042440/636333
We have MTOM enabled on both the client and server and the server seems to be able to stream the request out using this solution [1].
However the client still first downloads to the /tmp in the proxy web service call which means by the time we get a first look at the response object (to get the DataHandler) the file has already been downloaded to /tmp.
Is there some way we can make CXF defer the download and give me a stream connecting to the network stream?
[1]: https://stackoverflow.com/a/33042440/636333