Share this page

# getBytes

Returns the byte[ ] value associated with the given field number.

`public byte[] getBytes(LrISOField fldno) throws LrISOException`

`public byte[] getBytes(int fldno) throws LrISOException`

## Parameters

- fldno: The ISOField number.

## Return values

This function returns the field's byte[ ] value, or null for ISOException.

## Example

Copy code

    LrISOMsg m = new LrISOMsg();
    m.set(ISO87Fields.PAN_PRIMARY_ACCOUNT_NUMBER, "1234567891234567890");
    byte[] accountNumberFieldBytes = m.getBytes(ISO87Fields.PAN_PRIMARY_ACCOUNT_NUMBER);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: