Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to return binary payload using apigee

Hi

We have a blocker scenario in our project. One of the use - cases is to generate a pdf. The Target server returns a binary object (/octet-stream) . I am getting the payload using the Assign Message policy in the {message.content} . The API gives 200 and response is returned but the pdf is corrupted and does not open.

However when the Target server is directly involved bypassing the APIGEE proxy endpoint then it works fine and pdf is generated and opened successfully.

I am not doing anything with the response I receive from the target server and hence at a loss to understand why the pdf is corrupted when coming from APIGEE.

Can someone please help. We are into pre-prod and we are stuck. We do not have a porbable solution on this. Is there a limitation for returning binary data like pdf using APIGEE ? What is the solution for such use cases. Kindly help urgently.

@Dino

@Dino-at-Google

Regards

Nilanjan


0 5 1,394
5 REPLIES 5