title: Display blob image in symfony 2
body: <p>I need to display images stored in my database, from users in my symfony 2 application. <br>
  I've searched and I found examples such as:</p>
  
  <p><a href="https://stackoverflow.com/questions/20556773/php-display-image-blob-from-mysql">Php Display Image Blob from Mysql</a></p>
  
  <p>The line:</p>
  
  <pre><code>echo '&lt;img src="data:image/jpeg;base64,'.base64_encode( $result['image'] ).'"/&gt;';
  </code></pre>
  
  <p>It didn't worked for me.
  How to return an image file and display it in user's profile or a gallery page?</p>