We are using rest api in our project for integratiion with .net application.BPM Approval open Tasks are closed using Rest API call with some parameters like comments.
tw.local.decodedComments = String( Packages.java.lang.String(Packages.org.apache.common.codec.impl.dv.util.Base64.decode(tw.local.encodedComments)));
Giving below error.
TypeError: Cannot call property decode in object [JavaPackage org.apache.common.codec.impl.dv.util.Base64]. It is not a function, it is "object". (
It works fine without any special charactor.I searched on this and found that we need to convert encoded string into byte array then decode it to string.
Please advise how to encode and decode JSON string with special charactors in .net reponse while closing task,we need to save this comments with special charactor in data base.