hi ,
We have a requirement to send a FILE as BASE64 Encoded to EXTERNAL webservice using REST API.
How to convert the FILE to BASE64 Encoded?
how can we send it in a request?
Thanks in advance
hi ,
We have a requirement to send a FILE as BASE64 Encoded to EXTERNAL webservice using REST API.
How to convert the FILE to BASE64 Encoded?
how can we send it in a request?
Thanks in advance
We already have base64 stream in Pega, if we are using Pega DB for storage. Otherwise, we get it in byte stream from other storage systems, which we can convert easily using Java code in an activity. Once done, we can map it to a text property and pass it to the connect rest rule to send it to external system.
Use Pega OOTB Data Page D_pxNewFile to get the base64 content assuming you’re storing the attachments in Repository.
Hi Ramesh,
We aren’t storing the attachments in the repository. We need to send it to external digital vault using the REST API.
Thanks for your response.
If it’s DB storage, please check @VVNagaSaiN recommendation. The base64 format is already available in Data-WorkAttach-File instances