getMetadata().setDatasetName(fileName); // HACK: Create a dummy RAOS around this "fileName". // The OMERO format does not use RAOS to wrangle bytes. // This avoids creating a spurious empty file on disk. setDest(new RandomAccessOutputStream(null), imageIndex, config); ...