public function getimageAction() { $this->_helper->layout->disableLayout(); $id = (int) $this->_request->getParam('id', 0); $missionTable = new Missions(); $brand = $missionTable->find($id)->current(); //Zend_Debug::dump($photo); header("Content-type:{$brand->logo_type}"); $this->view->image = base64_decode($brand->logo); }