The regular UTF8 JSON Generator has a method:

writeBinary(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 contents into memory all 
at once.

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

Does anyone have a workaround that would allow me to achieve the same JSON 
functionality but using the XML mapper and Generator?


-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to