Azure云Web服务,存储选项

时间:2014-07-15 10:20:18

标签: azure azure-storage

我们正在将PHP网站迁移到Azure云服务(Web角色)。

目前,该网站通过驱动器号访问将用户提交的图像文件保存到文件系统。然后通过URL例如提供这些图像。 content.example.com。

我有哪些选项我想在Azure云服务上保持持久文件存储。

我目前正在为此评估BLOB存储。

由于

2 个答案:

答案 0 :(得分:1)

Blob存储是正确的答案。虽然您可以在base64中转换图像并将它们保存在Azure Sql中,但实际上并不建议这样做。

检查:Azure, best way to store and deploy static content (e.g. images/css)?Where to store things like user pictures using Azure? Blob Storage?

答案 1 :(得分:1)

减少应用程序重写的一个选项是将blob-storage挂载为网络驱动器。以下是一些信息:http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx

可以在Web-Role启动任务中安装驱动器,并且可以编写脚本。

相关问题