英文:
Deserialize xml or json from Azure File Share
问题
我正在尝试在Azure文件共享中反序列化文件,但我最接近的方法是使用ShareClient、ShareFileClient并使用DownloadAsync()方法。但这不允许我反序列化,因为我无法将其转换为Stream对象。
我应该如何读取/反序列化Azure文件共享中的文件?
英文:
I am trying to Deserialize files in Azure File Share but the closer I got is using the ShareClient, ShareFileClient and using the DownloadAsync() method. But this doesnt allow me to deserialize as I cant convert it to a Strem object.
How I am supposed to read/Deserialize files in Azure File Share?
答案1
得分: 0
你仍然会使用 DownloadAsync()
方法,它会将下载结果以 ShareFileDownloadInfo
的形式返回给你。文件的内容将在 Content
属性中可用,它会提供一个流,你可以按照需要使用。
英文:
You would still use DownloadAsync()
method which will give you the download result in ShareFileDownloadInfo
. The contents of the file will be available in Content
property which gives you a stream that you can use any way you see fit.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论