Skip to Content
1
Jul 06, 2020 at 03:40 PM

UDF to Read the Input Payload

1198 Views

Hello All,

I am trying to write UDF to read the input payload similar to how we're reading in java mapping with functionas mentioend below, but I don't know how to read the input payload in UDF. I looked into the two standard interface functions "Container" & "Global Container" but i didn't find any function to read the payload, i found one UDF logic in that they are reading the attachment and then from attachment they are reading the content.

Can any one please help me with simple UDF that can read input payload content ?

My requirement is:-

1. Read the input payload

2. Convert payload into String

3. Convert Payload as a string to base64 bit encoded

4. Then pass it to one field

I have already written the java mapping but same operation i need to write in UDF.

SO, need your help.

InputStream inputstream = transformationInput.getInputPayload().getInputStream();