如何编写组件将文件直接上传到Windows Azure Blob?
我一直在使用 Silverlight 的示例来尝试 Windows Azure Blob 存储。
我想知道是否可以在 Flash 中而不是 Silverlight 中编写文件上传组件,因为几乎每个地方都安装了前者。我从未使用 Action Script 进行编程,但我有扎实的 C# 背景,所以这一定不难。
您知道我可以在哪里学习如何开始使用吗?
I've been experimenting with Windows Azure Blob storage using the samples using Silverlight.
I was wondering if it's possible to write a file upload component in Flash instead of Silverlight, since the former is installed almost everywere. I've never programmed in Action Script but I have a solid background in C# so that must not be hard.
Do you know any place where I can learn how to get it started?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您始终可以将文件上传到 Web 服务器,然后使用 C# 代码将它们上传到 Azure。
此外,Blob 存储有一个 rest api,因此您可以直接执行此操作来自闪存,但是我担心这样的实现会将密钥泄露给公众。
You could alway upload the files to your web server and then have C# code upload them to Azure.
Additionally, the blob storage has a rest api so you could do it directly from flash, however I would be concerned about leaking keys to the public with such an implementation.
不必担心 JavaScript 中的共享密钥。
Azure 存储支持“共享访问签名”,它允许您向单个 blob(或容器等)提供短期写入权限。只需要在 URL 上添加一两个额外的查询字符串参数即可。
There doesn't have to be concern with sharing keys in JavaScript.
Azure storage supports "Shared Access Signatures" which allows you to give short-term Write privs to a single blob (or container, etc). All that's necessary is an additional query string parameter or two on your URL.