public void setBinaryData (IProcessparent, StringentityName, Long id, String attributeName, byte[] data)
throws AccessDeniedException, ExecutionException;

This method sets the data of the specified binary attribute of the specified instance of the business object. This method allows clearing binary attribute (if “data” is null). Normally if binary data is provided as part of the entity null is interpreted as “no change” for binary data and therefore it is impossible to clear binary data as part of entity update. This method allows doing that.

Parameters

entityNamethe name of the business object to set the data of
idthe unique id of the instance to set the data of (the unique id is assigned to the instance automatically by the system when the instance is created)
attributeNamethe name of the attribute the value of which is set (must be of the binary type). For attributes of the Document and Picture types the attribute name must be specified using the “dot” notation as attributes of these types are complex attributes consisting of the file name and file data. The file data part of the attribute is binary: attributeName.DOCDATAwhere attributeName is the name of the attribute of the Document or Picture type. The returned bytes are the bytes of the document or image.
datathe data to set. If null the binary data of the attribute is cleared.
  • Last modified: 2023/05/03 04:56