code: private String readBlobAsString(Blob logBlob) throws SQLException {
      if (logBlob == null) {
        return StringUtils.EMPTY;
      }
  
      byte[] ba = logBlob.getBytes(1L, (int) (logBlob.length()));
  
      if (ba == null) {
        return StringUtils.EMPTY;
      }
      String baString = Base64.encodeBase64String(ba);
      return baString;
    }
docs: /*
  For Blob data, need to get the bytes and use base64 encoding to encode the byte[]
  When reading from the String, need to use base64 decoder
  String tmp = ... ( get the String value )
  byte[] foo = Base64.decodeBase64(tmp);