ApiBody.binaryBytes constructor

const ApiBody.binaryBytes(
  1. List<int> bytes, {
  2. String? mimeType,
})

Binary upload from raw bytes.

Implementation

const ApiBody.binaryBytes(List<int> bytes, {String? mimeType})
    : this(
  type: ApiBodyType.binary,
  binaryBytes: bytes,
  binaryMimeType: mimeType ?? 'application/octet-stream',
);