how to convert document to base64 in pega Activity

how to convert document to base64 in Pega Activity step by step.

i have list of documents in pyWorkpage.documentlist. we are getting more document information from document metadata table.

I want to take checked document from UI and convert into base64 and send it to docusign.

@RaghavN2

This below snippet provide the base 64 content.

D_AttachmentContent[AttachInsKey:.ExtractClaimsData.pxAttachmentKey,PopulateAttachStream:“true”]. pyAttachStream

For more details: Split-View Confidence: Visual Validation in Constellation | Pega Community

@RameshSangili tried Not working