query(iconv('UTF-8', 'UTF-8', $sql)); list($ZP) = $result->fetch(PDO::FETCH_NUM); $image = base64_decode($ZP); echo $image; ?>