/** Write the header and the file to the output.
*/
private void channelTransfer (long length) {
TransferListener ftl = new FileTransferListener ();
TransferHandler th =
new TransferHandler (con.getProxy (),
new FCTransferable (length),
con.getChannel (), tlProxy, tlClient, ftl);
th.transfer ();
}