<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thanks Bernhard!<br><br>Got it working, I was indeed missing the statsinfo. <br><br>But I also ended up not using the gateway function, and just doing it the long way round...<br><br>j. <br><br><br>> From: bernhard.hollaender@gmail.com<br>> Date: Mon, 13 Jul 2009 14:00:31 +0200<br>> Subject: Re: [ome-devel] Using the Gateway object to create a new Image, then         viewing it with OMERO.insight?<br>> To: jeromeavondo@msn.com<br>> CC: ome-devel@lists.openmicroscopy.org.uk<br>> <br>> Hi Jerome!<br>> <br>> I'm not sure if it applies to the Gateway::createImage method, but I<br>> think you need to set the stats info for each channel before the<br>> Insight client is able to get a rendered image from the server. At<br>> least this was the trick I had to do before I could see the channels<br>> of images I created through the API in the Insight client.<br>> <br>> Hope that helps! Bernhard<br>> <br>> <br>> On Mon, Jul 13, 2009 at 1:21 PM, Jerome Avondo<jeromeavondo@msn.com> wrote:<br>> > Hi,<br>> ><br>> > I am trying to create a new Image object on the omero server using the Java<br>> > API.<br>> ><br>> > I use the gateway function, createImage().<br>> ><br>> > From what I can tell this seems to work fine,<br>> ><br>> > I create the image with the gateway function, and then fill up the planes<br>> > with some byte[] data. All this seems to work ok.<br>> > I can also export the Image to an OME-TIFF using that code I posted a while<br>> > back, so this would point me to think that the Image is valid.<br>> ><br>> > The problem I have is when I use OMERO.insight 4.0.3, to look at my Image,<br>> > it does not see any channels for the Image object.<br>> > And when I try to view it says; "The image could not be opened. The image is<br>> > not a valid image."<br>> ><br>> > I dug into the API and see that the gateway does create the Channel and<br>> > attached LogicalChannels objects, with the createImage().<br>> > So Im not too sure what else it needs to get insight to see it as a valid<br>> > Image.<br>> ><br>> > I can post code upon request if needed... Any help would be great.<br>> > Thanks,<br>> ><br>> > J.<br>> ><br>> ><br>> ><br>> > ________________________________<br>> > Beyond Hotmail - see what else you can do with Windows Live. Find out more.<br>> > _______________________________________________<br>> > ome-devel mailing list<br>> > ome-devel@lists.openmicroscopy.org.uk<br>> > http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br>> ><br>> ><br><br /><hr />Beyond Hotmail - see what else you can do with Windows Live. <a href='http://clk.atdmt.com/UKM/go/134665375/direct/01/' target='_new'>Find out more.</a></body>
</html>