Request clarification before answering.
Hi Anandha,
If you are using the sap util libraries i.e. aii_utilxi_misc.jar - import this in imported archive - import/mention this in the Archives Used tab in the screenshot below. In the Import Instructions mention - com.sap.aii.utilxi.base64.api.Base64 and create a udf as shown below (add exception handling).
This udf can then be used in your mapping for decoding :
If you want to use apache libraries - Go to the functions tab and add the import - org.apache.commons.codec.binary.Base64.
Create a udf in similar lines - where encoded is the input field value :
byte[] decoded = Base64.decodeBase64(encoded);
String decodedout = String(decoded);
return decodedout;
Regards
Subhro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anandh,
You need to implement a UDF or Java-Mapping to do the decoding. Please search on SDN, you will find some discussions.
Best Regards
H.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.