OpenNTF / org.openntf.domino

Open replacement for lotus.domino package in HCL Domino
Apache License 2.0
65 stars 34 forks source link

changed Base64 Decoder to MimeDecoder #189

Closed mariusj closed 1 year ago

mariusj commented 1 year ago

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() 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.

jesse-gallagher commented 1 year ago

Nice - makes sense. Thanks!