in app/java/src/main/java/com/google/cloudclientapi/GoogleCloudStorage.java [47:56]
public static void upload(String bucket, String filePath, String contentAsString)
throws UnsupportedEncodingException {
Storage storage = StorageOptions.getDefaultInstance().getService();
BlobId cloudStorageBlobId = BlobId.of(bucket, filePath);
BlobInfo cloudStorageBlobInfo =
BlobInfo.newBuilder(cloudStorageBlobId).setContentType("application/json").build();
String utf8CharsetName = StandardCharsets.UTF_8.name();
byte[] contentAsBytes = contentAsString.getBytes(utf8CharsetName);
storage.create(cloudStorageBlobInfo, contentAsBytes, 0, contentAsBytes.length);
}