setValueCustomDataBytes (Item - Java)

Sets the value of an item to custom data from a byte array.

Note: This method is new with Release 6.

Defined in



public void setValueCustomDataBytes(String datatypename, Byte bytearray)
    throws NotesException


String datatypename

A name for the data type. When getting custom data, use this name for verification.

Byte bytearray

A byte array that contains the custom data.


The new value replaces the existing value.

To keep the changes, you must call after calling setValueCustomData.

The custom data cannot exceed 64K.

Use this method if you intend to get the custom data through a language binding other than Java.

For methods that get custom data, see:

For other methods that write custom data to an item, see: