Skip to content

ToXmlGenerator ignores Base64Variant while serializing byte[] #377

@ghenadiibatalski

Description

@ghenadiibatalski

Hello, i'm using Jackson mapper and dataformat-xml 2.10.0 brought by Spring Boot 2.2.1.

Currently i recognize following problem: byte[] is properly serialized to base64 but in a wrong Base64Variant. I'm expecting the serialization in a default base64variant MIME-NO-LINEFEEDS but this is not the case, regardless, what variant i configure on an ObjectMapper. This because the ToXmlGenerator accepts the parameter b64variant but doesn't propagate it to underlying _xmlWriter (in my case woodstox stax2) which uses by default MIME Base64 Variant.

Could someone please improve this.

Many thanks in advance and kind regards,
Gena

Metadata

Metadata

Assignees

No one assigned

    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