$obj = PlikPeer::retrieveBySlug('dane'); header('Content-Type: ' . $obj->getTypmime()); echo stream_get_contents($obj->getDane());