如何让用户在线读取p7m文件
我正在运行一个基于 php/mysql 的网站。 我已经让我的用户上传 p7m 文件(其中大多数是 pdf 数字签名)。 有没有一种解决方案可以让用户直接在现场(在线)观看而不需要下载?就像谷歌对 pdf 或 rtf 文件所做的那样?
谢谢你,
S。
i'm running a php/mysql based website.
I already let my users upload p7m files (most of them are pdf digital signed).
Is there a solution to let users watch them on site (online) directly without download them? Like google does with pdf, or rtf files?
Thank you
S.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这些文件只是 MIME blob,则提取主要部分并显示它(对于 text/plain 或 /html 内容)。任何现有的文件签名都不会影响显示。
关于可嵌入的 PDF 查看,这可能是一个足够的选项:
http://googlesystem.blogspot.com/2009/09/embeddable -google-document-viewer.html
If these files are just MIME blobs, then extract the main part and display it (for text/plain or /html content). Any existing file signature has no impact for displaying.
Regarding the embeddable PDF viewing, this is probably a sufficient option:
http://googlesystem.blogspot.com/2009/09/embeddable-google-document-viewer.html