Custom transformation on field

Hi,

I need to apply base64 transformation on some fileds but it seems to be not compatble.

What the best ways to apply it, can we apply custom script ?

Thanks