cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (0)