title: Stream the data content directly from database to the HTTP
body: <p>Right now we are holding file in our postgresql database and mapping that content using <code>byte[]</code> field in our entity. I need to investigate if we could
  stream the content data direct from the database to the HTTP output stream, and do the same thing in opposite way so stream binary data from HTTP into database using jpa <code>Blob</code> data type. I know that <code>Blob</code> has methods <code>getBinaryStream</code> and <code>setBinaryStream</code> so its may work, and we do not need hold data into memory. </p>
  
  <p>What I am concern are database transaction, because we are mapping entity into DTO, and the second thing is broken Http request and data may be lost in some point. </p>
  
  <p>Is there are anybody who had any experience with that solution  ?</p>