Hello I have a code that is returning an image decoded on base64, but that code is on the version 1.4 of symfony and I need use that on the version 2.
Here is my code:
$imageData = $registro[0]['imagen'];
$response = $this->getResponse();
$response->clearHttpHeaders();
$response->setContentType('image/png');
$response->setContent(base64_decode($imageData));
return sfView:NONE