Cloud Storage

static Storage storage = StorageOptions.getDefaultInstance().getService();
@Value("${google.storage.bucket}")
private String bucketname;
BlobInfo blobInfo = storage.create(BlobInfo.newBuilder(bucketname, fileName).setContentType(file.getContentType()).setAcl(new ArrayList<>(
Arrays.asList(Acl.of(Acl.User.ofAllUsers(),
Acl.Role.READER)))).build(), file.getInputStream());Access control lists
Roles
Last updated