idea about attaching/retrieving a same-name file on servers
Posted: Tue Jul 12, 2011 2:12 am
Hi All,
what we want to do is trying to access to the same-named file from multiple different servers.
Eventually, we want to download all the files from those servers into local server.
So,
1.
do you have an idea how to attach(upload) a local file (txt file or binary file) to a local OMERO server (from python API)?
all I know is
but this function needs a parent (a project, dataset or image) to attach to, and I wonder if there is a way to attach(upload) a local file to server without parent.
2.
how can I download that file if I do not attach it to anything?
3.
how can I delete the attached file completely. (I'm asking this because I need to update the attached file frequently. I think there is no way to update the attached file in the server using API, thus I want to delete the existing file first and re-attach the updated file)
4.
Most importantly, I want the file to be accessed by any account. Is it possible to attach the file in this way?
Best,
BK
what we want to do is trying to access to the same-named file from multiple different servers.
Eventually, we want to download all the files from those servers into local server.
So,
1.
do you have an idea how to attach(upload) a local file (txt file or binary file) to a local OMERO server (from python API)?
all I know is
- Code: Select all
uploadAndAttachFile(queryService, updateService, rawFileStore, parent, localName, mimetype, description=None, namespace=None, origFilePathName=None) in omero.util.script_utils
but this function needs a parent (a project, dataset or image) to attach to, and I wonder if there is a way to attach(upload) a local file to server without parent.
2.
how can I download that file if I do not attach it to anything?
3.
how can I delete the attached file completely. (I'm asking this because I need to update the attached file frequently. I think there is no way to update the attached file in the server using API, thus I want to delete the existing file first and re-attach the updated file)
4.
Most importantly, I want the file to be accessed by any account. Is it possible to attach the file in this way?
Best,
BK