ved*_*eda 7 blob azure azure-blob-storage
我试图将一个34 MB的文件上传到blob,但它提示我一些错误
XML Parsing Error: no element found
Location: http://127.0.0.1:83/Default.aspx
Line Number 1, Column 1:
Run Code Online (Sandbox Code Playgroud)
我该怎么办......如何解决它
我能够上传大小为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);
}
}
Run Code Online (Sandbox Code Playgroud)
但我无法上传..任何人都可以告诉我该怎么做....
必须使用块blob上载大于64MB的Blob.您将文件分成块,上传所有块(将每个块与唯一的字符串标识符相关联),最后将块ID列表发布到blob以一次提交整个批处理.
对于小于64MB的大型blob,也建议在块中上传.网络连接中的打嗝很容易或通过互联网路由在非常大的上传中丢失一两帧,这将破坏或使整个上载无效.使用较小的块来减少您对宇宙事件的暴露.
更多信息在这个讨论主题:http://social.msdn.microsoft.com/Forums/en-NZ/windowsazure/thread/f4575746-a695-40ff-9e49-ffe4c99b28c7
| 归档时间: |
|
| 查看次数: |
2572 次 |
| 最近记录: |