title: Displaying a blob image in a jsp page using Spring MVC 3
body: <p>I have a class with (amongst others) the field picture which is retreived from the database:</p>
  
  <pre><code>public class Person {
    String name;
    Blob picture;
  }
  </code></pre>
  
  <p>So then I haven a controller where I add the person object to the model</p>
  
  <pre><code>@RequestMapping(value = "/online", method = RequestMethod.GET)
  public String getCurrentUser(Model model) {
    Person person = getMyPerson()
    model.addAttribute("person", person);
    return "online";
  }
  </code></pre>
  
  <p>And finally I have a .jsp page to display the user:</p>
  
  <pre><code>&lt;html&gt;
    &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
     ..some tags
  
     Persons name: ${person.name}
     Persons picture: ?your_answer_here? 
  &lt;/html&gt;
  </code></pre>
  
  <p>So the question (obviously) is how do I display the blob field as an image? I have tried and failed with . I really don't want to perform a new query to the database, I just want to display the image I already have ..</p>