Skip to main content

Read PDF in Boomi

If you need to read pdf from Boomi Atom installation path,then use code something like this in map function.

byte[] filebytes = new File('\\\\'+path+'\\'+filename+'.pdf').readBytes()

String strEncoded= filebytes.encodeBase64().toString()

name = filename+".pdf";

fileContent= strEncoded;


fileContent stores the encoded base 64 data.

Comments