# setOutputData method

void setOutputData(

1. Uint8List? outputData

)

Sets the the external resource data as a byte array.

param outputData The external resource data as a byte array. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    void setOutputData(Uint8List? outputData) {
      Pointer<UnsignedChar>? pOutputData;
      if (outputData != null) {
      	pOutputData = calloc.allocate<UnsignedChar>(outputData.length);
      	pOutputData.cast<Uint8>().asTypedList(outputData.length).setAll(0, outputData);
      }
      try {
        var err = biosealSDK.id3BiosealResourceCallbackArgs_SetOutputData(_pHandle.value, pOutputData ?? nullptr, outputData?.length ?? 0);
        if (err != BiosealError.success.value) {
          throw BiosealException(err);
        }
      } finally {
        if (pOutputData != null) {
          calloc.free(pOutputData);
        }
      }
    }