我正在将文件从 Windows 系统上传到 Azure 存储 blob
本地文件名可能包含 Blob 名称中无效的字符
我需要一种对这些名称进行编码的方法,以满足 MSDN 对 Blob 存储名称提出的要求,如下所示
A blob name must conforming to the following naming rules:
- A blob name can contain any combination of characters.
- A blob name must be at least one character long and cannot be more than 1,024 characters long.
- Blob names are case-sensitive.
- Reserved URL characters must be properly escaped.
- The number of path segments comprising the blob name cannot exceed 254. A path segment is the string between consecutive delimiter characters (e.g., the forward slash '/') that corresponds to the name of a virtual directory.
上面的相关信息是“保留的URL字符必须正确转义。但是,使用什么方法是“标准”的?
最佳答案
关于.net - 转义 Azure 存储 Blob 名称的正确方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28143759/