Skip to content

Payload too large question #473

@juanjosgu

Description

@juanjosgu

We are trying to send an image to A2A as part of a message payload. Following the JSON-RPC contract, we build the message with multiple parts (one text part and one file part).

When the file part contains bytes encoded as base64, the request fails (Payload too large exception). Example snippet:

"message": {
  "role": "user",
  "parts": [
    {
      "kind": "text",
      "text": "Text query"
    },
    {
      "kind": "file",
      "file": {
        "bytes": "<base64 image>",
        "mime_type": "image/png"
      }
    }
  ],
  "messageId": "5678",
  "kind": "message"
}

Questions

  • Is embedding base64 in the bytes field the supported approach?
  • If not, what is the recommended way to send images (e.g. raw binary upload, presigned URL, multipart)?
  • Would you consider supporting base64 input for convenience in client libraries?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions