Interface ImageContent

All Superinterfaces:
ContentBlock, MetaCarrier

public non-sealed interface ImageContent extends ContentBlock
Image data content
  • Method Details

    • data

      byte[] data()
      Returns the image data
      Returns:
      the image data as a byte array
    • mimeType

      String mimeType()
      Returns the MIME type of the image data
      Returns:
      the MIME type
    • annotations

      Optional<Annotations> annotations()
      Optional annotations for the client
      Returns:
      the annotations
    • builder

      static ImageContent.Builder builder(byte[] data, String mimeType)
      Creates a new builder for an ImageContent
      Parameters:
      data - the image data
      mimeType - the MIME type of the image data
      Returns:
      the image content builder
    • of

      static ImageContent of(byte[] data, String mimeType)
      Creates a new ImageContent
      Parameters:
      data - the image data
      mimeType - the MIME type of the image data
      Returns:
      the new image content