简体   繁体   中英

Get FileInfo from remote path

I have some files on Azure Storage eg http://mywebsite.blob.core.windows.net/scans/1d251700-5457-49c6-abec-c70fa37f77dd.png I am using MVC app as my api to process files etc. To do what I want I need to create FileInfo object from the image.

Is it possible somehow using path as above?

You need to utilise the Azure Storage SDK in your application. This can be installed via nuget in Visual Studio. Once you have this installed you need to setup an access key to the blob storage location(s) you are reading and writing from and use the Storage client. There is a great how-to on the Azure documentation site .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM