title: Spring restTemplate execute( ) POST large files and obtain a response
body: <p>This took me quite a while to work out so I wanted to share it.  Most information came from SO and I wanted to consolidate into this one place.</p>
  
  <p>My requirements are to upload files using a RESTFul POST.  Due to possibly large files I wanted to stream the files. I obviously want to be able to read the response.</p>
  
  <p>I planned to use Jersey as the REST Server and Spring's RestTemplate as the client (and for testing).</p>
  
  <p>The problem I faced was streaming POSTs and receiving a response.  How can I do that?  (Rhetorical question - I answer this!)</p>