This method of the Variant Class sets a Variant object to type VT_ARRAY|VT_UI1 and clears the previous contents.
public native void putByteArray(Object ba);