Tuesday, June 30, 2009

Windows Azure Tips

When uploading a file to blob, you have to specify "metadata".

Here, plain text can not be used, you have to use UrlEncode to encode it.

For example,

metadata["File Name"] = fileName will get ERRORS in runtime.

You should use:

metadata[System.Web.HttpUtility.UrlEncode("File Name")] = System.Web.HttpUtility.UrlEncode(fileName);

***

Due to requirements I've developed a local tool that can upload/download any file to/from Windows Azure Storage using C#. And I've registered http://sap.blob.core.windows.net and http://intel.blob.core.windows.net lol

1 comment:

  1. ok. Seems that some other ppl can do the job without UrlEncode. Anyway.

    Now I'll try to modify the data in Azure without downloading it then uploading it.

    ReplyDelete