HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
monitor.work(1);
monitor.setText(i18n.tr("Setting mode"));
client.mode(HylaFAXClient.MODE_STREAM);
client.type(HylaFAXClient.TYPE_IMAGE);
monitor.work(1);
monitor.setText(i18n.tr("Downloading file"));
TransferMonitor transferMonitor = new TransferMonitor(monitor, 10, size);
OutputStream out = new BufferedOutputStream(new FileOutputStream(file));