writeBytes abstract method

Future<ObjectInfo> writeBytes(
  1. String name,
  2. List<int> bytes, {
  3. ObjectMetadata? metadata,
  4. Acl? acl,
  5. PredefinedAcl? predefinedAcl,
  6. String? contentType,
})

Create an new object in the bucket with specified content.

Writes bytes to the created object.

See write for more information on the additional arguments.

Returns a Future which completes with an ObjectInfo instance when the object is written.

Implementation

Future<ObjectInfo> writeBytes(String name, List<int> bytes,
    {ObjectMetadata? metadata,
    Acl? acl,
    PredefinedAcl? predefinedAcl,
    String? contentType});