Skip to content

Add @Attachment byte[] interface #485

Description

@theangrydev

I'm submitting a ...

  • feature request

What is the current behavior?

Currently @Attachment can only be used with byte[] and String return types.

What is the expected behavior?

I propose adding an interface AttachmentBytes as another return type understood by @Attachment annotation:

public interface AttachmentBytes {
    byte[] attachmentBytes();
}

What is the motivation / use case for changing the behavior?

I would like to use a custom return type other than byte[] and String so that I do not need to convert to a raw type every time I use @Attachment

Activity

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