title: PHP Symfony2 BLOB data display using TWIG
body: <p>In my database, I have images in blob columns which I am retrieving these images and showing to the user via HTML. </p>
  
  <p>Now, the problem is:</p>
  
  <p>In PHP when I do </p>
  
  <pre><code>header("content-type: image/jpeg");
  echo $image;
  </code></pre>
  
  <p>I shows me image in browser, However, through TWIG or HTML, I am not able to show the image. passing the same <code>$image</code> 
  like </p>
  
  <pre><code>return this-&gt;render("...twig",array($name -&gt; $image));
  </code></pre>
  
  <p>But it does not work... <code>$name</code> is attribute in <code>img</code> tag in TWIG. Browser simply shows junk data for this field.</p>