def METHOD_NAME(self, assocType, filename, nullTerminated=False, key=None):
    with open(filename, 'rb') as f:
      byteArray = bytearray(f.read())
    self.embed_data(assocType, byteArray, nullTerminated, os.path.basename(filename), key)