Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

0 Answers