cancel
Showing results for 
Search instead for 
Did you mean: 

Update XSTRING field with Base64 data from Agentry Java

ashvenk
Explorer
0 Kudos
352

Hello All,

we have a scenario in SAP Inventory manager where as part of the requirement we are passing a Base64 value from Agentry to Java which has to get updated to a SAP table with import parameter defined as a XSTRING variable.

In SAP we have an import parameter "IS_FILE_CONTENT_BIN" of Type "XSTRING"

Java code :

String base64Data = _user.getString((new StringBuilder()).append(prefix).append("ZInspectedBySign").toString()); byte[] bytes = ConversionUtility.hexStringToByteArray(base64Data);

setValue(this._imports, "IS_FILE_CONTENT_BIN", bytes);

Any help is much appreciated.

Thanks.

Ashwin

Accepted Solutions (0)

Answers (0)