There is a requirement to interface PR attachments from MAS Manage 9 to external system.
I have used the below method in publish channel user exit script to retrieve the content.
attachments=Base64.getEncoder().encodeToString(XMLUtils.readXMLFileToBytes(mbo.getString("DOCINFO.URLNAME"))))
But it throws exception
java.lang.NullPointerException: null
at java.util.Base64$Encoder.encode(Base64.java:267) ~[?:?]
at java.util.Base64$Encoder.encodeToString(Base64.java:321) ~[?:?]
This code was well working with Maximo 7.6 .
Please find the user exit script attached.
DOCINFO.URLNAME is store as cos:doclinks/myfile.pdf
Has anyone come across this issue?
Kindly provide your input
Thanks
Ratheesh
------------------------------
Ratheesh Pullaikodi
------------------------------