BlobPart

class BlobPart : Part


Represents binary data with an associated MIME type sent to and received from requests.

Summary

Public constructors

BlobPart(mimeType: String, blob: ByteArray)

Public properties

ByteArray

the binary data as a ByteArray

String

an IANA standard MIME type.

Public constructors

BlobPart

BlobPart(mimeType: String, blob: ByteArray)
Parameters
mimeType: String

an IANA standard MIME type. For supported values, see the Vertex AI documentation .

blob: ByteArray

the binary data as a ByteArray

Public properties

blob

val blobByteArray

the binary data as a ByteArray

mimeType

val mimeTypeString

an IANA standard MIME type. For supported values, see the Vertex AI documentation .