AnsweredAssumed Answered

URI of the document in Alfresco

Question asked by azarfaiz on Feb 27, 2018
Latest reply on Mar 13, 2018 by azarfaiz

Hi

 

I tried the below code

URI uri = new URI("http://127.0.0.1:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/99c9f0ab-c78a-4980-9665-2fbecf69621a/Sample.pdf");
File f = new File(uri);

 

I am getting the error as "URI scheme is not file". But when i put the http://127.0.0.1:8080/share/proxy/alfresco/api/node/content/workspace/SpacesStore/99c9f0ab-c78a-4980-9665-2fbecf69621a/Sample.pdf in browser, I could be able to see my document opening in the browser window.

 

My question is then what will be the correct URI (how to get the URI) that refers to my document so that i could create a reference File object for the document present in Alfresco.

 

Any help appreciated.

Outcomes