[ome-devel] Accessing OMERO.insight attachements via the API.
jean-marie
j.burel at dundee.ac.uk
Mon Jul 20 18:25:43 BST 2009
Hi Jerome
You can load all the annotations linked to a given object
using the loadAnnotations method from IMetadata service
i.e. tags, ratings, attachments etc.
if a file annotation is returned, the original file (ref to the
uploaded file) will be loaded as well
you can then get the size of the file by doing
FileAnnotation fa;
size= fa.getFile().getValue();
If you then want to read the original file,
you will need to use the RawFileStore service
code example:
id = fa.getFile().getId().getValue();
RawFileStorePrx store = getRawFileService();
store.setFileId(fileID);
store.read(0, size)
hope it helps
Jmarie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20090720/bdc87307/attachment.htm
More information about the ome-devel
mailing list