使用 Azure 函数将视频上传到 Blob 存储
Upload video to Blob Storage using Azure Function
在我的应用中,我希望我的用户上传本地视频,我希望将其存储在 Blob 存储中。但我想通过使用 Azure Functions 来实现这一点。这可能吗?如果是这样,我找不到任何可以为我指明正确方向的资源。如果不是,实现这一目标的理想方式是什么。我正在使用 flutter 构建应用程序,我们还没有 SDK。感谢您的帮助。
Dart 没有可用的 SDK。您必须在 .NET、Java、[=23= 中制作后端部分 运行 ]JavaScript 或 Python 以便使用 Azure Functions。
但您可以使用 Azure 存储 REST API 通过 存储帐户将视频存储为 blob。
看看官方参考资料here。使用它,您将能够使用 Http 存储视频。
此外,this tutorial 可能会有用。
这家伙正在使用 文件服务 而不是 Blob 服务。
一个有趣的点是你必须记住一些限制,并不是说不可能做你想做的事,而是要注意:
There are limitations to the storage service.
[...] You can only upload 4mb “chunks” per upload. So if your
files exeed 4mb you have to split them into parts. If you are a good
programmer you can make use of tasks and await to start multiple
threads. Please consult the Azure limits documentation to see if any
other restrictions apply.
在我的应用中,我希望我的用户上传本地视频,我希望将其存储在 Blob 存储中。但我想通过使用 Azure Functions 来实现这一点。这可能吗?如果是这样,我找不到任何可以为我指明正确方向的资源。如果不是,实现这一目标的理想方式是什么。我正在使用 flutter 构建应用程序,我们还没有 SDK。感谢您的帮助。
Dart 没有可用的 SDK。您必须在 .NET、Java、[=23= 中制作后端部分 运行 ]JavaScript 或 Python 以便使用 Azure Functions。
但您可以使用 Azure 存储 REST API 通过 存储帐户将视频存储为 blob。
看看官方参考资料here。使用它,您将能够使用 Http 存储视频。
此外,this tutorial 可能会有用。
这家伙正在使用 文件服务 而不是 Blob 服务。 一个有趣的点是你必须记住一些限制,并不是说不可能做你想做的事,而是要注意:
There are limitations to the storage service. [...] You can only upload 4mb “chunks” per upload. So if your files exeed 4mb you have to split them into parts. If you are a good programmer you can make use of tasks and await to start multiple threads. Please consult the Azure limits documentation to see if any other restrictions apply.