header('content-type:image/jpeg');$filename = 'image.jpg'; $handle = fopen($filename, 'rb+'); //读写二进制,图片的可移植性 $res = fread($handle, filesize($filename)); fclose($handle);echo $res;