-
Notifications
You must be signed in to change notification settings - Fork 325
Closed
Description
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?
carlosccor
Metadata
Metadata
Assignees
Labels
No labels