2010-06-04 69 views

回答

1
$pdf = ... // data retrieved from BLOB field 
header("Content-Type: application/pdf"); 
header('Content-Disposition: attachment; filename="THE_NAME_OF_THE_FILE_TO_BE_DOWNLOADED.pdf"'); 
echo $pdf; 
+0

考慮添加一個Content-Length頭 - 特別是如果文件是「大」。 – jensgram 2010-06-04 10:14:03