title: Uploading a picture in filesystem with JSP/servlet to MYSQL
body: <p>I've been having some trouble performing this task and I could use a little help:</p>
  
  <p>Im trying to upload a picture from my filesystem to a MYSQL DB using a JSP/Java Servlet</p>
  
  <p>I have a file in an images folder.
  I know I'm supposed to read the file, convert it into a byte, get the outputStream, but I have had little luck doing so (and I've posted no code because my attempts have been train wrecks).  After the file is in the outputStream, I know how to form a sql statement as an insert with a blob referenced as a ? parameter, but I cannot get this far. </p>
  
  <p>Any help would be much appreciated.</p>