Question

Coforge Limited
IN
Last activity: 17 May 2017 10:07 EDT
Upload Document Service is failing because of white spaces occuring by "pySaveFileContent" Pega OOTB activity in the DOCUMENT-CONTENT field (typically get from "pyAttachStream" field from Data-WorkAttach-File)
In our Connect-HTTP Upload document service, we have a field called DOCUMENT-CONTENT, which takes document content streame in Base64 encoded format. We need to pass the attach document stream to the DOCUMENT-CONTENT field to store the document.
For that we are using "pySaveFileContent" Pega OOTB activity to capture the content of the document and passing it to service. But the problem is with the Pega OOTB activity from which we get the document content stream in property of "pyAttachStream" with white spaces/invalid form and truncated Document stream. Due to invalid content and white spaces the Upload Document service is getting failed.
Can someone please assist?