Azure的文件存储/检索解决方案 [英] Azure file storage/indexing solution

查看:115
本文介绍了Azure的文件存储/检索解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,它运行的是作为一个Azure的Web应用程序。此应用程序在其中用户可以导航目录的部分,并允许用户打开文件和浏览子目录在所述目录中。

I'm developing a Web Application, and it is running as an Azure Web App. This application has a section in which a user can navigate a directory, and allows the user to open the files and browse sub-directories in said directory.

目前,子目录和文件都在里面〜/内容/文档,而我浏览目录的使用 Directory.GetFiles() Directory.GetDirectories();这是由 System.IO 提供的功能。

At the moment, the sub-directories and files are inside "~/Content/Documents", and I am browsing the directory's by using Directory.GetFiles() and Directory.GetDirectories(); functions which are provided by System.IO.

有问题的文件将被检索并下载每日数次,并且没有办法手动路径中的一个接一个,看到有一个大的数量,并且它们可能会改变。

The files in question would be retrieved and downloaded several times a day, and there is no way to manually path one-by-one, seeing as there is a large quantity, and they are subject to change.

不过,我已成为不方便的文件存储在Web目录中。所以我的两个问题是:

However, I has become inconvenient to store the files within the web directory. So my two questions are:

什么Azure的服务,我可以用它来存储和检索我的文件?

What Azure service can I use to store and retrieve my files?

以下哪项服务,提供能力的首页 / 地图的路径,这将符合自己的web应用程序?

Which of these services provides the ability to index/map a path, which would fit with my web-app?

请注意,用户的不要有编辑或上传的任何文件的能力,并没有为此不需要该服务允许非认证上传

Please note that the users do not have the ability to edit or otherwise upload any of the files, and there is therefor no need for the service to allow non-authenticated upload.

推荐答案

在新望Azure的文件存储功能,可用于将文件存储在Azure存储,使他们通过SMB文件共享访问。这将允许那些需要保存/检索文件使用一个传统的文件共享的传统应用程序。这可以更容易地集成到现有的应用程序,而无需完全重写文件存储code。

The newish Azure File Storage feature can be used to store files in Azure Storage and make them accessible via an SMB file share. This will allow for legacy application that require the use of a traditional file share for saving / retrieving files. This allows for easier integration into existing applications without needing to completely rewrite the file storage code.

https://azure.microsoft.com/en-us/blog/azure-file-storage-now-generally-available/

这篇关于Azure的文件存储/检索解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆