[ome-devel] Download an original file with a remote access

Olivier Arnaiz arnaiz at cgm.cnrs-gif.fr
Mon Aug 3 16:17:51 BST 2009


Hello,

I have the latest version of OMERO.server (4.0.3) and I would like to  
have a remote access to an image file in a Java Program:
I have written these lines :

		omero.client client = new omero.client("localhost");
	        ServiceFactoryPrx sf = client.createSession("me", "***");
		
		omero.api.GatewayPrx gateway = sf.createGateway();
		long imageId = 12 ;
		omero.model.Image image = gateway.getImage(imageId);

		System.out.println("Image_name="+image.getName().getValue());
		
		
		omero.model.Pixels pixel = gateway.getPixels(imageId);
		System.out.println("Pixel_X="+pixel.getSizeX().getValue());
		System.out.println("Pixel_Y="+pixel.getSizeY().getValue());
		System.out.println("Pixel_Z="+pixel.getSizeZ().getValue());
		System.out.println("Pixel_C="+pixel.getSizeC().getValue());
		System.out.println("Pixel_T="+pixel.getSizeT().getValue());


How can I convert my omero.model.Image into a classical Image Object  
or an object readable with the loci package ?
Is it possible to download the original file ?

Do you have any suggestions ?
Thanks
Olivier


--
Olivier Arnaiz
CGM-CNRS
91198 Gif-sur-Yvette
01 69 82 43 75

ParameciumDB:
   http://paramecium.cgm.cnrs-gif.fr/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20090803/4d6df9f7/attachment.htm 


More information about the ome-devel mailing list