Нi, everybody! Faced with the issue when trying to use local Microsoft Azure Storage for uploading files through Data Lake Service Client in c#.
As connection string to emulator used:
"UseDevelopmentStorage=true"
Code used:
DataLakeServiceClient _dataLakeClient = new DataLakeServiceClient(connectionString)
DataLakeFileSystemClient fileSystemClient _dataLakeClient.GetFileSystemClient(containerNameLowercase);
DataLakeDirectoryClient directoryClient = fileSystemClient.GetDirectoryClient(path);
DataLakeFileClient fileClient = await directoryClient.CreateFileAsync(name);
Problem occurs in : await directoryClient.CreateFileAsync(name)
Versions:
- StorageEmulator: 5.10
- Azure Storage Explorer: 1.23.3
- Language: C#
If you have any suggestions in how to handle it, feel free in your answers.
Updated: Required header is: x-ms-blob-type.
So I faced with another problem, how to add that header to DataLakeFileClient header?
Thank you in advance
