title: How to return an InputStream as a file in Spring Boot?
body: <p>I have an InputStream to a file obtained from a server through SSH using JSch. I want to return it as a file in my Spring Boot application.</p>
  <p>Try using ResponseEntity as I read on many forums but it doesn't work</p>