Search code examples
azureazure-blob-storageazure-storage

Deserialize xml or json from Azure File Share


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?


Solution

  • 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.