title: Something similar to FileCopyUtils.copy method in basic Java
body: <p>I am trying to generate a pdf in my application.</p>
  
  <p>I have used the following in a previous project to copy the byte array to the outputstream.</p>
  
  <pre><code>FileCopyUtils.copy(fileContent, response.getOutputStream());
  </code></pre>
  
  <p>In my current project we are not using spring framework. So I cannot use <code>FileCopyUtils</code> here. Is there any other way to do the similar thing in simple basic java.</p>