Skip to content

Add support for writeBinary() with InputStream to ToXMLGenerator #270

@christian-x7h

Description

@christian-x7h

The regular UTF8JSONGenerator has a method:

writeBinary(Base64Variant b64variant, InputStream data, int dataLength)

That supports reading an InputStream, converting the binary stream to Base64, and directly writing to the content output. Thereby saving some memory by not having to load the entire stream's content into memory all at once.

However, ToXmlGenerator does not implement this method. It only implements a writeBinary overload that takes an already existing byte[].

I first reported this issue on the jackson-user google group, and @cowtowncoder suggested I open an issue on GitHub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions