openmicroscopy/openmicroscopy — pull request #1227 by sbesson (2013-05-30 14:19:24+00:00)
Title: OMERO.matlab: add functions to write and link file annotations (see #10385) (rebased onto develop)

This is the same as gh-1212 but rebased onto develop.

----

See https://trac.openmicroscopy.org.uk/ome/ticket/10385

The basic scenario to test should be the following

```
fa = writeFileAnnotation(session, filePath)
linkAnnotation(fa, 'image', imageId)
```

Additional options can be passed to `writeFileAnnotation` and should be tested
```
fa = writeFileAnnotation(session, filePath, 'mimetype', mimetype)
fa = writeFileAnnotation(session, filePath, 'namespace', namespace)
fa = writeFileAnnotation(session, filePath, 'description', description)
```