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

Decode base64 image in apigee

@Dino: We are facing issue while decoding base64 string? We tested below and didn't result as expected.

Please suggest.

https://github.com/DinoChiesa/ApigeeEdge-Java-Simple-Base64

Thanks.

Solved Solved
0 8 2,518
1 ACCEPTED SOLUTION

Hi Vinay

I added an example of decoding a Base64 payload into the github repo.

When I added the sample I discovered that the result of the decoding was not being properly set, outside of the tests! So I had to update the callout to do it properly.

Sorry for the inconvenience.

This should work properly for you now.

With the updates, you need to update your policy files to reference v1.0.3 of the callout jar.

Also please add the commons-codec jar into your proxies as a dependency.

Good luck.

View solution in original post

8 REPLIES 8