outputStream.write(Base64.encodeBase64(tuple.getBytes(i).asByteArray(), false));
break;
case CHAR:
CharDatum charDatum = tuple.getChar(i);
byte[] pad = new byte[col.getDataType().getLength() - datum.size()];
outputStream.write(charDatum.asTextBytes());
outputStream.write(pad);
break;
case TEXT:
outputStream.write(tuple.getText(i).asTextBytes());
break;