public Blob createBlobFromByteArray(String bucketName, String blobName) {
    // [START createBlobFromByteArray]
    BlobId blobId = BlobId.of(bucketName, blobName);
    BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build();
    Blob blob = storage.create(blobInfo, "Hello, World!".getBytes(UTF_8));
    // [END createBlobFromByteArray]
    return blob;
  }
public Blob createBlobFromByteArray ( String bucketName , String blobName ) { BlobId blobId = BlobId . of ( bucketName , blobName ) ; BlobInfo blobInfo = BlobInfo . newBuilder ( blobId ) . setContentType ( "text/plain" ) . build ( ) ; Blob blob = storage . create ( blobInfo , "Hello, World!" . getBytes ( UTF_8 ) ) ; return blob ; }
[VARIABLE "my_blob_name"]