title: Store image in h2 database
body: <p>I am working with Spring MVC architecture and Hibernate using H2 Database.</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
      &lt;%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Add New Product&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p&gt;Add New Product !!&lt;/p&gt;
  &lt;form:form action="addProducttoDB" commandName="product" method="POST" enctype="multipart/form-data"&gt;
  Product id :&lt;br&gt;
  &lt;label&gt;Product Name : &lt;/label&gt;&lt;form:input  path="product_name" value="Product Name"/&gt; &lt;br&gt;
  Product Desc : &lt;form:input path="product_desc" value="Product Desc"/&gt;&lt;br&gt;
  Select Image :&lt;form:input type="file" path=""/&gt;&lt;br&gt; 
  Submit : &lt;input type="submit" value="Add"&gt;
  &lt;/form:form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As in above code - its storing the information about prodouct and adding to Database using action request -> "addProducttoDB" , Model object -> product</p>
  
  <p>And path is the column name, now I would like to save an image along with the details. How can I do that?</p>