Trying to get base64 content of new issue attachment in workflow's Issue.onChange(), like it is implemented in REST api (field base64Content of IssueAttachment).
Can't use REST api because new attachment is not available yet in Issue.onChange(),
so have to use workflow api, but can't find any fields or methods to get base64 attachment data.
- couldn't find any documentation for IssueAttachment.content field format, only realised it belongs to class jetbrains.youtrack.workflow.sandbox.InputStreamWrapper.
- found out native js btoa() and atob() aren't available.
Is there any options to get base64 content of an attachment using workflow js api without implementing base64 by myself?