title: Write byte array to MySQL database from Java as image or file
body: <p>I want to save files to my MySQL database.</p>
  
  <ol>
  <li><p>Could I get the byte array from the file and store it in the database? Or is there any other way to save a file derectly in a MySQL database?</p></li>
  <li><p>What field type should I use to save a byte array to mysql and please give me an example query of how to insert an byte array</p></li>
  </ol>