I am currently working on the following process :
pooling a directory containing pdf, then encapsulate each pdf into an xml file .
To encapsulate the pdf into the xml document , I encode its bytes content into a base 64 string.
Unfortunately, this base64 encoding cause the corruption of the pdf .
Description of my process :
pub.file:getFile (load as bytes, encoding=UTF-8 )
For the tests, I have used pub.string:base64Decode in order to compare bytes before/after. And the bytes after process are not equals to the original ones.
Did you already encounter such issue ?