English 中文(简体)
BlobType of the blob reference doesn tcompbobType of the blob?
原标题:BlobType of the blob reference doesn t match BlobType of the blob?

i) 储存在Blob集装箱内,其代码如下:

  CloudBlob blob = container.GetBlobReference("Images/page11/Orange box.png");
  blob.UploadFromStream(mnm);
  blob.Metadata["FileName"] = "Orange box.png";
  blob.SetMetadata();

i 成功地储存在集装箱内,如“Images/page11/Orange 方框.png”,但在i fetch Depende i got mis时。 BlobType of the blob using this Code.

            blob.FetchAttributes();
            return true;

从集装箱中获取Blob的正确途径吗?

最佳回答

我不知道你是如何准确弄清这一错误的,但它看上去与BlobType有关的情况。 如果你已经知道,那么就有两个种类的博览会、插座和页面。 对于图像来说,通常使用区桥比比。 因此,将第1行改为container.GetBlockBlobReference(”etc. >;

任何方面,为了回答您从集装箱中获取布道的问题,您可做<条码>。 这对你来说最为重要。

不能确定你试图做什么,但是,由于这是一种形象,如果你更方便地了解这个地点,那么你就能够这样做:<img src=”http://myapp.blob.分。

它想像你在试图找到属性,尽管在法典中是这样吗? 如果是的话,你就能够做<代码>blob。 Attributes.MetaData[“FileName”]

问题回答

@jignesh,

你可能会以不同的方式创造博彩,并用不同的方式加以阅读。 编写以下法典,以创建和更新档案

 public async Task<CloudAppendBlob> UpdateCSVinBlob(Stream fileStream, string containerName, string blobFullPath)
    {
        // Get the blob container
        var containerClient = this.GetContainer(containerName);
        if (containerClient != null)
        {
            CloudAppendBlob appBlob = containerClient.GetAppendBlobReference(blobFullPath);

            if (!appBlob.Exists())
            {
                appBlob.CreateOrReplace();
            }

            appBlob.AppendFromStream(fileStream);

            return appBlob;
        }

        return null;
    }




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签