作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Linux 应用程序上的 WordPress,在 Azure 上运行,并带有 MySql 数据库。
我需要能够将 PDF 文件上传到 Azure,然后在网站中提供一个链接,使用户能够单击该链接并查看 PDF。
更具体地说,该文档是在本地创建然后上传到 Azure 的月度发票。用户将登录,然后看到一个允许他查看发票的链接。
我不知道文档应该如何存储。是否应该存储在MySql数据库中?或者在某种可以链接的存储类型中?当然,它需要安全。
最佳答案
Greg,Blob 存储将是 Azure 中的最佳选择,它的功能如下:
1 -Serving images or documents directly to a browser
2 -Storing files for distributed access
3- Streaming video and audio
4- Storing data for backup and restore, disaster recovery, and archiving
5- Storing data for analysis by an on-premises or Azure-hosted service
存储在 Azure Blob 中的任何文件都可以通过链接访问,例如: https://storagesample.blob.core.windows.net/mycontainer/blob1.txt或使用别名,例如 http://files.mycompany.com/somecontainer/bolbs.txt
完整详细信息可在此处访问:https://learn.microsoft.com/en-us/azure/storage/blobs/storage-dotnet-how-to-use-blobs
关于azure - 如何在 Azure 上存储 pdf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47576887/
我是一名优秀的程序员,十分优秀!