Hi!
In Insight this is done by a query, which requests all original files for an image and then downloads them via the RawFileStore. I'm currently extracting this code from Insight into a separate Java Gateway which makes dealing with the Java API a bit easier.
You can take the current Gateway code as example.
The method which actually performs the download is TransferFacilityHelper.downloadImage(...)
https://github.com/openmicroscopy/openm ... .java#L949 (you can ignore the "//Prior to FS" part)
The query you need for getting the FileSet (the original files of the image) is in TransferFacilityHelper.getFilesetQuery()
https://github.com/openmicroscopy/openm ... java#L1070You can also use the Java Gateway directly (you would need blitz.jar and its dependencies), but be aware that the Java Gateway is still "experimental" for 5.2.0:
https://www.openmicroscopy.org/site/sup ... /Java.htmlRespectively the downloadImage(...) method in particular:
http://downloads.openmicroscopy.org/ome ... ring-long-Regards,
Dominik