1. Home
  2. Docs
  3. Guides
  4. Manage Account
  5. Upload Company Image

Upload Company Image

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

Sequence to call API for upload company image

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);
		 
Sample code to prepare raw data object for upload company image

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

How can we help?