File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
azure-storage-file-share/src/samples/java/com/azure/storage/file/share Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,18 @@ The following sections provide several code snippets covering some of the most c
180
180
- [ Upload data to a blob] ( #upload-data-to-a-blob )
181
181
- [ Upload a blob from a stream] ( #upload-a-blob-from-a-stream )
182
182
- [ Upload a blob from local path] ( #upload-a-blob-from-local-path )
183
+ - [ Upload a blob if one does not already exist] ( #upload-a-blob-if-one-does-not-already-exist )
184
+ - [ Upload a blob and overwrite if one already exists] ( #upload-a-blob-and-overwrite-if-one-already-exists )
185
+ - [ Upload a blob via an ` OutputStream ` ] ( #upload-a-blob-via-an-outputstream )
183
186
- [ Download data from a blob] ( #download-data-from-a-blob )
184
187
- [ Download a blob to a stream] ( #download-a-blob-to-a-stream )
185
188
- [ Download a blob to local path] ( #download-a-blob-to-local-path )
189
+ - [ Read a blob via an ` InputStream ` ] ( #read-a-blob-via-an-inputstream )
186
190
- [ Enumerate blobs] ( #enumerate-blobs )
187
191
- [ Copy a blob] ( #copy-a-blob )
192
+ - [ Generate a SAS token] ( #generate-a-sas-token )
188
193
- [ Authenticate with Azure Identity] ( #authenticate-with-azure-identity )
194
+ - [ Set a proxy when building a client] ( #set-a-proxy-when-building-a-client )
189
195
190
196
### Create a ` BlobServiceClient `
191
197
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ public void uploadDataToStorageBiggerThan4MB() {
220
220
// BEGIN: readme-sample-uploadDataToStorageBiggerThan4MB
221
221
byte [] data = "Hello, data sample!" .getBytes (StandardCharsets .UTF_8 );
222
222
223
- long chunkSize = ShareFileAsyncClient . FILE_DEFAULT_BLOCK_SIZE ;
223
+ long chunkSize = 4 * 1024 * 1024L ;
224
224
if (data .length > chunkSize ) {
225
225
for (int offset = 0 ; offset < data .length ; offset += chunkSize ) {
226
226
try {
You can’t perform that action at this time.
0 commit comments