[英]How to Get Absolute Path Azure Storage Account?
This is My Code for Azure Storage Account Document upload using C# code 这是我的使用C#代码上传Azure存储帐户文档的代码
CloudBlockBlob blockBlob = container.GetBlockBlobReference(strDirectoryName+"\\"+ FUPUPLOAD.PostedFile.FileName);
blockBlob.UploadFromFile(Server.MapPath("~/LocalFolder/" + FUPUPLOAD.PostedFile.FileName));
How to Get Absolute Path for the file uploaded by me. 如何获取我上传的文件的绝对路径。 CloudBlockBlob
CloudBlockBlob
If you want to get the storage uri you could use the method Bhushan Muttha provided blockBlob.Uri.ToString()
. 如果要获取存储uri,可以使用Bhushan Muttha提供的方法
blockBlob.Uri.ToString()
。
And if you want to get the blob absolute path, you could use blockBlob.Uri.AbsolutePath
to get this property. 而且,如果要获取Blob绝对路径,则可以使用
blockBlob.Uri.AbsolutePath
来获取此属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.