cancel
Showing results for 
Search instead for 
Did you mean: 

Error opening KM file with special character

FLSaito
Participant
0 Kudos

I'm using the following code to get the url to an file stored in KM, but when some file has the ( or )character in the name, an error occurs saying that the file doesn't exist in KM. The file name look like this (CDU001-C010) Delegar WorkFlow.doc.gif.

IUriReference uriRef;

IURLGeneratorService ugs;

ugs = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);

uriRef = ugs.getRelativeUri(PathKey.CONTENT_ACCESS_PATH).appendPath(resource.getRID().toExternalForm());

retorno = uriRef.toExternalForm();

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

FLSaito
Participant
0 Kudos

231