public Attachment setData(byte[] value) { 
      if (value == null)
        this.data = null;
      else {
        if (this.data == null)
          this.data = new Base64BinaryType();
        this.data.setValue(value);
      }
      return this;
    }
public Attachment setData ( byte [ ] value ) { if ( value == null ) this . data = null ; else { if ( this . data == null ) this . data = new Base64BinaryType ( ) ; this . data . setValue ( value ) ; } return this ; }
@param value The actual data of the attachment - a sequence of bytes. In XML, represented using base64.