GlideSysAttachment.getContentBase64 is undefined in Jakarta

peterraeves
Mega Guru

I need to get the Base64 content of attachments. The ootb function for this, according to the docs, is GlideSysAttachment.getContentBase64.

I tried it

var sa = new GlideSysAttachment();

gs.print(sa)

gs.print(sa.getContentBase64)

And it was undefined

*** Script: com.glide.ui.SysAttachment@12031ed

*** Script: undefined

What function should I use instead?

1 ACCEPTED SOLUTION
1 REPLY 1