BlobPart

public final class BlobPart implements Part


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

Summary

Public fields

final @NonNull byte[]

the binary data as a ByteArray

final @NonNull String

an IANA standard MIME type.

Public constructors

BlobPart(@NonNull String mimeType, @NonNull byte[] blob)

Public fields

blob

public final @NonNull byte[] blob

the binary data as a ByteArray

mimeType

public final @NonNull String mimeType

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

Public constructors

BlobPart

public BlobPart(@NonNull String mimeType, @NonNull byte[] blob)
Parameters
@NonNull String mimeType

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

@NonNull byte[] blob

the binary data as a ByteArray