问题标签 [azure-blob-storage]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
723 浏览

iis - Blob 存储、IIS 平滑流式传输或自适应流式传输我很困惑

我想在云上拥有流畅的流媒体功能,但我有点困惑。

我通过在网上搜索看到,到 4 月我们将支持 azure blob 的舒缓流式传输,但我没有看到任何更新。它还在继续吗?我们应该等待吗?任何新闻? http://blogs.msdn.com/b/hanuk/archive/2011/04/12/windows-azure-cdn-for-iis-smooth-streaming.aspx

我已经看到了这种进行快速流式传输的方法

http://blog.smarx.com/posts/smooth-streaming-with-windows-azure-blobs-and-cdn 他正在解析文件并重新创建清单它似乎有一些限制和未来版本的潜在问题,它被称为自适应流而不是平滑。这是要走的路吗?

我还想知道我们是否必须使用 silverlight 播放器,或者是否也可以在 HTML5 中完成?

0 投票
2 回答
22069 浏览

c# - 找不到文件时处理 FileContentResult

我有一个控制器操作,它根据容器引用名称(即 blob 中文件的完整路径名)从 azure blob 下载文件。代码看起来像这样:

那里的BlobStorage类​​是我的帮助类,用于从 blob 下载流。

我的问题在代码注释中说明:找不到文件/流时我应该如何处理这种情况?目前,我正在传递一个空的 PDF 文件,我觉得这不是最好的方法。

0 投票
1 回答
6963 浏览

azure - 天蓝色 CloudBlobDirectory.ListBlobs() 返回“指定的资源不存在。”,但 fetchAttributes() 使用相同的数据工作

当我尝试迭代 ListBlobs() 调用的结果时,出现“指定的资源不存在”异常。当我直接访问它时,我可以获得 blob 属性,但我试图获取子目录中所有 blob 的列表。

我写了这个小测试来看看问题到底出在哪里。我在这里有一个测试驱动程序和两种方法。第一种方法“GetBlockBlobDateTime”运行良好并返回现有 blob 的日期时间。第二种方法“GetBlobDirFiles”使用相同的输入并在我尝试迭代 blobItems 时抛出异常。

请注意,两种方法都使用相同的数据。我错过了什么?

0 投票
15 回答
45306 浏览

windows - 如何在不编写自己的程序的情况下将某些文件上传到 Azure Blob 存储?

我创建了一个 Azure 存储帐户。我有一个 400 兆字节的 .zip 文件,我想将其放入 blob 存储以供以后使用。

我怎么能不写代码做到这一点?有什么接口吗?

0 投票
1 回答
200 浏览

windows - 将我的角色服务包存储在 Azure Blob 存储中的安全性如何?

Azure 管理门户允许从之前上传到 Azure blob 存储的服务包部署服务。这看起来很方便,但有点偏执——如果某些第三方访问 blob 存储并检索构成我的角色的可执行文件怎么办?

在 Azure Blob 存储中存储角色服务包的安全性如何?如果有的话,有什么更好的选择?

0 投票
1 回答
402 浏览

azure - Azure 存储信息

我是 azure API 的新手,azure 存储帐户之后的哪些数据或日志有博客:事件?wad-control-container wad-iis-logfiles 了吗?表 事件 WADDirectoriesTable WADLogsTable WADPerformanceCountersTable WADWindowsEventLogsTable

0 投票
1 回答
756 浏览

azure - Azure storage not showing up on server?

I have an azure storage account and two web roles. The storage account is used for the web roles.

The other day I put a file in the storage account but the server couldn't see it. After lots of refresh attempts the server saw the file, only to go away again on the next refresh.

To fix that problem I re-deployed my config file from my computer. After that the files started showing up.

I just put a javascript file in my /js/ folder on my storage account. Normally, this file would show up right away. It's been about 10 minutes and I still can't see the file.

Is this expected behavior? I thought that once a file is deployed it is immediately available to all servers connected to that storage account. Anyone know how to fix this?

p.s. I'm using cloud berry to deploy

0 投票
3 回答
422 浏览

asp.net-mvc - 在 MVC 3 中删除 Azure Blob

我正在尝试删除使用 azure 存储的 mvc 3 应用程序中的 blob。

我正在尝试将要删除的 blob 的 Uri 传递给控制器​​,但是会引发错误:

A potentially dangerous Request.Path value was detected from the client (:)

我认为这是来自https:Uri 的一部分,我需要将其解析出来,但是我不知道该怎么做。我想知道如何解决这个错误。

有没有更优雅的方式从存储中删除 blob?

0 投票
3 回答
22836 浏览

asp.net-mvc - 在 MVC3 中下载 Azure Blob 文件

我们的 ASP.NET MVC 3 应用程序在 Azure 上运行并使用 Blob 作为文件存储。我已经弄清楚了上传部分。

视图将具有文件名,单击该文件名将提示出现文件下载屏幕。

谁能告诉我该怎么做?

0 投票
2 回答
13294 浏览

azure - Azure blob 名称的最大长度是多少

在 Azure 本身上,我发现我可以制作名称长度为 1000 的 blob,但不是 1100(所以我猜是 1024)。使用开发存储我可以做 200,但不是 300(所以我猜一些与 MAX_PATH 相关的东西)。有官方限制吗?