Skip to content

Commit 82cd3ea

Browse files
committed
javadoc: recommend Storage.writer for large uploads
1 parent 93b7a0c commit 82cd3ea

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • gcloud-java-storage/src/main/java/com/google/gcloud/storage

gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,15 +494,17 @@ public static Builder builder() {
494494
BucketInfo create(BucketInfo bucketInfo, BucketTargetOption... options);
495495

496496
/**
497-
* Create a new blob.
497+
* Create a new blob. Direct upload is used to upload {@code content}. For large content,
498+
* {@link #writer} is recommended as it uses resumable upload.
498499
*
499500
* @return a complete blob information.
500501
* @throws StorageException upon failure
501502
*/
502503
BlobInfo create(BlobInfo blobInfo, byte[] content, BlobTargetOption... options);
503504

504505
/**
505-
* Create a new blob.
506+
* Create a new blob. Direct upload is used to upload {@code content}. For large content,
507+
* {@link #writer} is recommended as it uses resumable upload.
506508
*
507509
* @return a complete blob information.
508510
* @throws StorageException upon failure

0 commit comments

Comments
 (0)