加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows Azure:无法将34 MB文件上载到blob

发布时间:2020-12-14 04:19:10 所属栏目:Windows 来源:网络整理
导读:我试图将一个34 MB的文件上传到blob,但它提示我一些错误 XML Parsing Error: no element foundLocation: http://127.0.0.1:83/Default.aspxLine Number 1,Column 1: 我该怎么办……如何解决它 我能够上传大小为500KB的小文件..但是我有一个大小为34 MB的文件
我试图将一个34 MB的文件上传到blob,但它提示我一些错误
XML Parsing Error: no element found
Location: http://127.0.0.1:83/Default.aspx
Line Number 1,Column 1:

我该怎么办……如何解决它

我能够上传大小为500KB的小文件..但是我有一个大小为34 MB的文件要上传到我的blob容器中

我试过用它

protected void ButUpload_click(object sender,EventArgs e)
        {
            // store upladed file as a blob storage
            if (uplFileUpload.HasFile)
            {
                name = uplFileUpload.FileName;
                // get refernce to the cloud blob container
                CloudBlobContainer blobContainer = cloudBlobClient.GetContainerReference("documents");

                // set the name for the uploading files
                string UploadDocName = name;

                // get the blob reference and set the metadata properties
                CloudBlob blob = blobContainer.GetBlobReference(UploadDocName);
                blob.Metadata["FILETYPE"] = "text";
                blob.Properties.ContentType = uplFileUpload.PostedFile.ContentType;

                // upload the blob to the storage
                blob.UploadFromStream(uplFileUpload.FileContent);

            }
        }

但我无法上传..任何人都可以告诉我该怎么做….

必须使用块blob上载大于64MB的Blob.您将文件分成块,上传所有块(将每个块与唯一的字符串标识符相关联),最后将块ID列表发布到blob以一次提交整个批处理.

对于小于64MB的大块,也建议在块中上传.网络连接中的打嗝或通过互联网路由在非常大的上传中丢失一两帧非常容易,这将破坏或使整个上载无效.使用较小的块来减少您对宇宙事件的暴露.

更多信息在这个讨论主题:http://social.msdn.microsoft.com/Forums/en-NZ/windowsazure/thread/f4575746-a695-40ff-9e49-ffe4c99b28c7

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读