如何将pem文件存储在数据库中并检索回来并作为pem文件使用


How to store pem file in database and retrieve back and use as pem file

我有许多不同APNS授权的pem文件。现在我想将pem文件存储到数据库中,并以pem的形式检索它。

我试过使用这个头

header('Content-Type: application/x-pem-file');

我认为BLOB数据类型可能有用。请参考此链接http://dev.mysql.com/doc/refman/5.0/en/blob.html希望能有所帮助