开发者

Retrieving PDF stored in blob field please

please can any one help with a PHP/Mysql script that can enable the download of PDF stored in a blob when a link 'DOWNLOAD NOW' is clicked. i have tried but no result. kind开发者_JAVA技巧ly help Thanks


$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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜