Repository full path
StaryVena
New Altair Community Member
Answers
-
Hi,
you mean the file on disk? No way. There is not necessarily a file behind it.
Cheers,
Simon0 -
Hello,
I guess you are dealing with problem of reading a file from repository. To do so you probably need to extend theclass YourClass extends AbstractReader<YourIOObject> { ... }
and also you will need to register reader description
Then the:
class YourClass extends AbstractReader<YourIOObject> {
static {
AbstractReader.registerReaderDescription(new ReaderDescription("txt",
YourClass.class, PARAMETER_FILENAME));
}
...
}getParameterAsFile(fileName);
should search also in local repositories.
Unfortunately I had to miss something because it does not work for me .
If you find a solution I would be really interested.0 -
Hi,
once again: The API of Repositories has nothing to do with files. Repository entries are not necessarily files. Therefore, if you want to operate on repositories, getParameterAsFile() will be of absolutely zero use. It returnes a File and knows nothing about repositories.
But if you want to store or retrieve images from the repository, you can use blobs. Repositories can contain processes, ioobjects, and blobs. So you take the RepositoryLocation, locate (or create) the corresponding entry, and cast it to BlobEntry. You can then store binary image date.
Best,
Simon0