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

How to read pdf attachment in the request,do Base64encode and add it as xml tag to the request

Hi Everyone,

I want to create a API Proxy which will take XML Request with pdf as an attachment. I have to take that pdf attachment and convert it to Base64 Encoded value and then insert that encoded value as one new xml element to the original XML request from the client and send it to the Target.

I am using on-premise Apigee Edge.

Please suggest me with sample code.

Ravi

0 2 534
2 REPLIES 2
Top Solution Authors