Skip to Content
0
Apr 20, 2023 at 02:00 PM

SAP CPI Groovy Script Decode Base64

421 Views

Hi all,

I am searching for a way to transform/ decode a base64 string usiung groovy, without success so far. Does any one has made something like this?

My other idea was to use the standard decode function which CPI offers but in this case I have to remove the auto created parts like

----------------------------813331044092542234214851

Content-Disposition: form-data; name="attachment[file]"; filename="Test für PDF.pdf"

Content-Type: application/pdf

----------------------------813331044092542234214851—

Since I only need the body.

Regards
David