Skip to Content

Receiving a binary file (application/pdf) from a REST service in PI

Feb 21, 2017 at 10:07 AM


avatar image
Former Member

We have a REST service we need to call with a simple HTTP GET at a dynamic URL to retrieve a PDF. When I test the service in external tools the return is a binary stream with content-type application/pdf. So the payload is not base64 encoded and/or wrapped in a JSON structure.

How can I handle this kind of content in PI? Since the REST adapter only seems to support XML and JSON content types, is this not possible?

If I need to use another adapter, which one should that be? I need to somehow get the binary date in to an XML structure (for later consumption in BPM). The HTTP_AAE adapter can grab the PDF but handles it like an application/octet-stream.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers