String serverCoverFilename = null;
if (fax.cover != null && fax.coverIn != null) {
monitor.setText(i18n.tr("Generating cover"));
SubTaskProgressMonitor coverMonitor = new SubTaskProgressMonitor(monitor, 5, 0);
StringBuffer data = fax.cover.generate(fax.coverIn, coverMonitor);
coverMonitor.done();
// Cover senden
byte[] buffer = data.toString().getBytes(FaxCover.CHARSET);
TransferMonitor transferMonitor = new TransferMonitor(monitor, 5, buffer.length);
client.addTransferListener(transferMonitor);