I am trying to use the groovy service to get the contents of attachments and pass it via ajax to our microservice. So far I have managed to grab the attachments and get the name, byte data of the attachments, however, what I would like is to get the content as string: something like

function does in PHP.

Could anyone suggest the best way to get the content of the attachments?


My Groovy script looks like:


  1. Margaret Antaki

    Hi Abu, Is this question related to your 'How to pass attachments to a micro service?' question? What's the status of this one? And if you have additional information or a solution please share.

CommentAdd your comment...