Question
Help with connect rest configuration - Pega 8.4
I'm trying to hit the ABBYY process image api - (https://cloud-westus.ocrsdk.com/v2/processImage) with a PDF from the platform (8.4). No problems in postman.
Issue, I think, is getting the PDF stream in to the request body. I've attached the pega log showing what gets passed is just an XML of my pxObjClass class name (log.txt).
Second attach is the rest post config. Third attach is my request data transform. I don't think I need to base64? In any event, nothing is written to the log.
On the clipboard after attach, I can see data in the pyAttachStream.
Any input is appreciated!
adam
Hi Adam,
I tried passing base64 pdf file value in key imageSource (https://cloud-westus.ocrsdk.com/v2/processImage) from postman, it is not working.
Service documentation says
https://www.ocrsdk.com/documentation/api-reference/process-image-method-v2/
Specifies the source of the image. It can be either a scanned image, or a photograph created with a digital camera. Special preprocessing operations can be performed with the image depending on the selected source. For example, the system can automatically correct distorted text lines, poor focus and lighting on photos.
The value of this parameter can be one of the following:
Open questions
In Pega, where these PDF files are stored. Is it in db table or server path like temp directory?
If the file are fetched from Pega table, it may be in binary format, are you doing any other conversion apart from base64?
Are you able to share failed request and response from tracer?