query(iconv('UTF-8', 'UTF-8', $sql));
//$result = mysql_query($sql);
list($ZP) = $result->fetch(PDO::FETCH_NUM);
//$row = mysql_fetch_array($result);
$image = base64_decode($ZP); //使用base64_decode()函数解码
//$image = base64_decode($row['ZP']); //使用base64_decode()函数解码
echo $image; //输出照片
?>