Question
Coforge
IN
Last activity: 21 Dec 2022 5:08 EST
Unbale to send document content as a File through a connect soap Request, PEGA supports only Base64
In my application we need to upload a document which will connect to a different system to send the document content.
Connect Rest has been configured which is a multipart form. But the xternal system is expecting the docuent content as a file :
In my application we need to upload a document which will connect to a different system to send the document content.
Connect Rest has been configured which is a multipart form. But the xternal system is expecting the docuent content as a file :
// This attaches the file to the POST: File f = new File(filepath); builder.addBinaryBody( "docContent", new FileInputStream(f), ContentType.APPLICATION_OCTET_STREAM, f.getName() ); But PEGA is supports only base64.
Is there any option available where i can send teh actual file through connect rest.
***Edited by Moderator Marije to change Type from Discussion to Question***