title: Can I choose File or InputStream for large objects in my JPA entity?
body: <p>I want to store a large object in my database. I am doing it in JPA way.
  Entity:</p>
  
  <pre><code> @Entity
   public class Book
   {
  
     @Id
     private String bookId;
  
     @Column
     private String title;
  
     @Column
     private byte[] pdfFile;
  
    //setters and getters
  
   }
  </code></pre>
  
  <p>Can I choose <code>pdfFile</code> field as direct <code>File</code> or <code>InputStream</code> ? If yes, What's the benefit of using it?</p>