title: Get opened input stream from rest template for large file processing
body: <p>I am looking for a way to get opened input stream from rest template - I was trying to used ResponseExtractor, but the stream is getting closed before returning, as written here:</p>
  
  <p><a href="https://jira.spring.io/browse/SPR-7357" rel="noreferrer">https://jira.spring.io/browse/SPR-7357</a></p>
  
  <p>"Note that you cannot simply return the InputStream from the extractor, because by the time the execute method returns, the underlying connection and stream are already closed"</p>
  
  <p>I hope that there is a way and I will not have to write to my output stream directly in the rest template.</p>