code: def read_binary_array(self, key, b64decode=True, decode=False):
          
          data = None
          if key is not None:
              data = self.db.read(key.strip())
              if data is not None:
                  data_decoded = []
                  for d in json.loads(data, object_pairs_hook=OrderedDict):
                      if b64decode:
                          # if requested decode the base64 string
                          dd = base64.b64decode(d)
                          if decode:
                              # if requested decode bytes to a string
                              try:
                                  dd = dd.decode('utf-8')
                              except UnicodeDecodeError:
                                  # for data written an upstream java App
                                  dd = dd.decode('latin-1')
                          data_decoded.append(dd)
                      else:
                          # for validation in tcrun it's easier to validate the base64 data
                          data_decoded.append(d)
                  data = data_decoded
          else:
              self.tcex.log.warning(u'The key field was None.')
          return data
docs: Read method of CRUD operation for binary array data.
  
          Args:
              key (string): The variable to read from the DB.
              b64decode (bool): If true the data will be base64 decoded.
              decode (bool): If true the data will be decoded to a String.
  
          Returns:
              (list): Results retrieved from DB.