We have a Connect-REST where we send request along with a attachment using POST method.
I am creating Page pyRequestAttachmentPage(Data-ServiceMessage) before calling Connect-REST in which I am setting the pyAttachNames, pyAttachValues, pyAttachTypes, pyAttachFileNames. Please note I am sending pyAttachValues after Encoding using the function @Default.Base64Encode.
It is working fine in Pega 7.1 for the same data and same attachment but failing in 8.5.4, it is giving me below response in Pega 8.5.4
I ignored going through the documentation as i felt everything looks same compared to previous pega version but after going through the link you gave I found "Handling Base64-encoded file content" section and realized that we don't need to do Encode the content and pega platform is taking care of it.
So I removed the code where I am Encoding the pyAttachValues and it worked.
Posted: 9 months ago
Posted: 13 Sep 2021 16:08 EDT
Kayla Metivier (Kayla_M)
Associate Information Curator