title: How to show image from H2 database to Thymeleaf?
body: <p>I'm doing spring boot, using H2 database, thymeleaf view. 
  I have a form to upload image to save into H2 database(byte[] image), 
  In thymeleaf, how to show image? anyone tell me the solution?</p>
  
  <p>controller:</p>
  
  <pre><code>@RequestMapping(value = "user/new", method = RequestMethod.GET)
  public String newBeans(Model model) {
      model.addAttribute("usersss", new Beans());
      return "userform";
  }
  
  @RequestMapping(value = "user", method = RequestMethod.POST)
  public String saveUser(Beans beans) {
      RepositoryUser.save(beans);
      return "redirect:/users";
  }
  </code></pre>
  
  <p>form:</p>
  
  <pre><code>&lt;form&gt;
      &lt;label&gt;Avatar:&lt;/label&gt;
      &lt;input type="file" th:field="${usersss.Avatar}"/&gt;
      &lt;button type="submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>shows:</p>
  
  <pre><code>&lt;form&gt;
      &lt;label&gt;Avatar:&lt;/label&gt;
      &lt;p&gt;
          ?????????
      &lt;/p&gt;
  &lt;/form&gt;
  </code></pre>