cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Base64 Decoder With Groovy Script

mark_fryu
Participant

Accepted Solutions (0)

Answers (2)

Answers (2)

Distinct_Sky
Explorer
0 Likes

In that case, I would suggest to do it in the field level Message mapping. The below code is for SAP PI, but can be used in CPI as well.

Solved: Decode Base64 at field level! - SAP Community

mark_fryu
Participant
0 Likes

hi @Distinct_Sky 

I tried but I get this error:

mark_fryu_1-1722931962495.png

 

This is my payload:

 

mark_fryu_2-1722932019567.png

 

 

This is the groovy script:

 

mark_fryu_0-1722932417549.png

 

 

 

 

mark_fryu
Participant
0 Likes

yes I can, but the part to be decoded is in the middle, at the beginning and at the end there are parts that must not be decoded. For this reason if I use the standard block "Base64 Decoder" it goes into error