getDxl().selectSingleNode("//filedata").getText() returns Base64 string in Mime format (max 76 characters, lines separated by \r\n).
This patch changes Base64.getDecoder() to Base64.getMimeDecoder() to handle this encoding.
There are couple more calls to getDecoder (e.g. in getFileDataRaw) that I didn't touch, because I didn't have opportunity to test if returned strings are Mime encoded or not.
Fixes #188 .
Changes proposed in this pull request
getDxl().selectSingleNode("//filedata").getText()
returns Base64 string in Mime format (max 76 characters, lines separated by \r\n).This patch changes
Base64.getDecoder()
toBase64.getMimeDecoder()
to handle this encoding.There are couple more calls to
getDecoder
(e.g. ingetFileDataRaw
) that I didn't touch, because I didn't have opportunity to test if returned strings are Mime encoded or not.