Class TransferFacility


  • public class TransferFacility
    extends Facility
    Facility which provides data transfer functionality, i.e. download files and upload/import files.
    • Method Detail

      • downloadImage

        public java.util.List<java.io.File> downloadImage​(SecurityContext context,
                                                          java.lang.String targetPath,
                                                          long imageId)
                                                   throws DSAccessException,
                                                          DSOutOfServiceException
        Downloads the original file of an image from the server.
        Parameters:
        context - The security context.
        targetPath - Path to the file.
        imageId - The identifier of the image.
        Returns:
        See above
        Throws:
        DSOutOfServiceException - If the connection is broken, or not logged in
        DSAccessException - If an error occurred while trying to retrieve data from OMERO service.