Skip to content

[Feat]: I want to use a java.io.File with FileWithBytes #703

Closed

Description

@jmesnil

Is your feature request related to a problem? Please describe.

io.a2a.spec.FileWithBytes requires the user to pass String bytes to the constructor which is a base64-encoded representation of the file content.

Describe the solution you'd like

We could add an additional constructor that would take a java.io.File instead of String name, String bytes and perform the base64 encoding.
That would provide a better UX for the users.

This is related to #700

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Mar 5, 2026
  2. jmesnil commented on Mar 5, 2026

    @jmesnil
    ContributorAuthor

    Duplicates #702 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions