title: Spring Boot, Apache CXF 3.2.5 with MTOM sends empty attachment
body: <p>I'm having a weird issue with Apache CXF and large (375MB) MTOM attachments are empty.
  Running it locally in Eclipse produces the desired results, but deploying it to our server just gives an empty attachment.</p>
  
  <p>The server is written in .NET and doesn't support chunking. With Chunking enabled the client works, but when i disable cunking it fails.</p>
  
  <p>Sadly i'm unable to debug on the server, so i'm restricted to trace logging.</p>
  
  <p>I've tried every trick i've been able to google. </p>
  
  <ul>
  <li>Disable schema validation (<a href="https://issues.apache.org/jira/browse/CXF-4551%20CXF-4551" rel="nofollow noreferrer">CXF-4551</a>) (<a href="https://issues.apache.org/jira/browse/CXF-7758" rel="nofollow noreferrer">CXF-7758</a>)</li>
  <li>Manually copying the file to java.io.tmpdir before sending, to ensure it can be read.</li>
  <li>Custom DataSource</li>
  <li>Disable WS-Security</li>
  <li>Disable logging interceptor</li>
  </ul>
  
  <p>Nothing seems to make a difference.
  Every run i just get something like the following</p>
  
  <pre><code>&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;
  --uuid:40ef745b-ac3c-4013-bbe7-a9cc28880423
  Content-Type: application/xml
  Content-Transfer-Encoding: binary
  Content-ID: &lt;7611ca0a-22f8-4637-b4f7-a5dfe7f20b81-3@www.somewhere.dk&gt;
  Content-Disposition: attachment;name="32_2018-03-28_output.xml"
  --uuid:40ef745b-ac3c-4013-bbe7-a9cc28880423
  </code></pre>
  
  <p>Trying with a smaller (2KB) file on the server works just fine. A 75MB file gets attached correctly, but results in a HTTP 400 from the receiver (which i suspect is because the file is not fully transferred)</p>
  
  <p>Does anyone have any ideas as to what might be causing this ?</p>