Skip to content

Commit bcf8280

Browse files
Merge pull request #290829 from pauljewellmsft/data-lake-upload-options
Update due to code sample change
2 parents 9c54584 + 3c87b26 commit bcf8280

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

articles/storage/blobs/data-lake-storage-directory-file-acl-dotnet.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: pauljewellmsft
66

77
ms.author: pauljewell
88
ms.service: azure-data-lake-storage
9-
ms.date: 07/24/2023
9+
ms.date: 11/20/2023
1010
ms.topic: how-to
1111
ms.reviewer: prishet
1212
ms.devlang: csharp
@@ -125,8 +125,6 @@ The following code example shows how to upload a local file to a directory using
125125

126126
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/dotnet-v12/CRUD_DataLake.cs" id="Snippet_UploadFile":::
127127

128-
You can use this method to create and upload content to a new file, or you can set the `overwrite` parameter to `true` to overwrite an existing file.
129-
130128
## Append data to a file
131129

132130
You can upload data to be appended to a file by using the following method:
@@ -146,7 +144,7 @@ The following code example shows how to append data to the end of a file using t
146144
The following code example shows how to download a file from a directory to a local file using these steps:
147145

148146
- Create a [DataLakeFileClient](/dotnet/api/azure.storage.files.datalake.datalakefileclient) instance to represent the file that you want to download.
149-
- Use the [DataLakeFileClient.ReadAsync](/dotnet/api/azure.storage.files.datalake.datalakefileclient.readasync) method, then parse the return value to obtain a [Stream](/dotnet/api/system.io.stream) object. Use any .NET file processing API to save bytes from the stream to a file.
147+
- Use the [DataLakeFileClient.ReadStreamingAsync](/dotnet/api/azure.storage.files.datalake.datalakefileclient.readstreamingasync) method, then parse the return value to obtain a [Stream](/dotnet/api/system.io.stream) object. Use any .NET file processing API to save bytes from the stream to a file.
150148

151149
This example uses a [BinaryReader](/dotnet/api/system.io.binaryreader) and a [FileStream](/dotnet/api/system.io.filestream) to save bytes to a file.
152150

0 commit comments

Comments
 (0)