Example: Java convert to and from formatted
convert_from_formatted
This example shows a call to lrapi.web.convert_from_formatted with the data format extension provided with the wrapping XML of the formatted data.
lrapi.web.convert_from_formatted("FormattedData=" + "<LR_EXTENSION name=\"Base64\">test string</LR_EXTENSION>", "TargetParam=DFE_BODY", new String[]{ "LAST"});
This example shows a call to lrapi.web.convert_from_formatted with the data format extension specified in the Extensions argument
lrapi.web.convert_from_formatted("FormattedData=test string", "TargetParam=DFE_BODY", new String[]{"Extensions=Base64", "LAST"});
convert_to_formatted
lrapi.web.convert_to_formatted("RawData=dGVzdCBzdHJpbmc=", "TargetParam=DFE_Param1", new String[]{"ChainName=c1", "LAST"});