title: ByteArrayResource usage
body: <p>I have a template pdf which is stored in either in physical path or in application classpath. I have to read this template and fill its fields for each request based on user input for every request. I want to convert this file into byte and store this in Configuration bean during application startup instead reading template file every time. For this can I use ByteArrayResource in Spring or another better approach.</p>
  
  <p>My goal is not to read template file every time.</p>