Skip to Content
0

Base64 encoding in SAP PI

Dec 09, 2016 at 09:59 AM

304

avatar image

Hi Folks,

I have a requirement ,We have to pick the PDF file from FTP and keep the file in Sharepoint by encoding with base64.

I know this can be handled with Java Mapping.

My question is whether we can handle this scenario without using Java?

Is there any module to handle it.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Evgeniy Kolmakov Dec 09, 2016 at 10:06 AM
0

Hi Pavithra!

Take a look at this blog:

https://blogs.sap.com/2015/04/30/base64decodeconverter-base64-decoding-made-easy/

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Pavithra Rajkumar Dec 09, 2016 at 10:13 AM
0

Thanks Evgenity for your response.

I can see its a custom module.

So it means we cannot handle this by Standard module.Only by Custom module we can handle this scenario.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Pavithra!

This module has been written by Eng Swee Yeoh, the famous and respected Community member and Java expert. You can deploy it to your PI server and use it like any other adapter module.

Regards, Evgeniy.

1

I also recommend you using this custom module.

Have used it in the past to encode/decode JPEG/XML files and it works greatly!

0
Dave Narendra Dec 12, 2016 at 10:16 PM
0

Hi Pavithra,

the base64 encoding can be done in SAP-ECC side. There is a function module to do the same. You can place the file in the NFS location and ask the ABAP program to convert it to Base64.

Regards

Dave

Share
10 |10000 characters needed characters left characters exceeded