I wanted to upload files to AzureDataLake but can’t decide which method to use
I found these two overloads of DataLakeFileClient.UploadAsync
- https://learn.microsoft.com/en-us/dotnet/api/azure.storage.files.datalake.datalakefileclient.uploadasync?view=azure-dotnet#azure-storage-files-datalake-datalakefileclient-uploadasync(system-io-stream)
- https://learn.microsoft.com/en-us/dotnet/api/azure.storage.files.datalake.datalakefileclient.uploadasync?view=azure-dotnet#azure-storage-files-datalake-datalakefileclient-uploadasync(system-string)
As I understand only difference is that we provide path or fileStream to the content. But is there any difference in behavior or efficiency between those two ways of providing content? Or it’s just about convenience?