This is to update or add company image which is showed when do manual document signing.

Source Code Sample
byte[] bImg = Utils.readBytesFromFile(img);
imgHex = Utils.bytes2HexString(bImg);
JSONObject jsonData = new JSONObject();
jsonData.put("img", imgHex);
jsonData.put("transparency", "1");
data = Hex.encodeHexString(Utils.aesEcbPkcs5PaddingEncrypt(jsonData.toString(),apiSecret));
mac = Utils.calculateMac(data,apiSecret);
Request Body Creation
{
"img":"ffd8ff….",
"transparency": "1",
}
Example of Request
https://<domain>/signserver/v1/user/companyimg?accesstoken=d7a3ad1586084a58&data=5a899f31ce22453fadc37c1a&mac=75706f345fc7129c6eb5cb
Expected Response
{"result":0,"message":"Success"}
For error code, please refer to status code page.
{"result":104}
API reference : Upload Company Image