【发布时间】:2011-02-07 02:27:30
【问题描述】:
我试图将一个 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);
}
}
但我无法上传它..谁能告诉我怎么做....
【问题讨论】:
-
您遇到什么错误?这很重要。
标签: azure blob azure-blob-storage