cancel
Showing results for 
Search instead for 
Did you mean: 

Want to download file using URI

surajit
Champ in-the-making
Champ in-the-making
Hi I want to download (open/save) a file from my JBoss portal. I have created a Web Service to log into the Alfresco server and go to a particular file in a directory by using
WebService.getRepositoryService.get(new Reference[]{SAMPLE_FILE},STORE,null)

I can read the content of the file by using contentService.read function.

Now I don't want to read the file content. I just want to read the contentURI and display on my portlet. When somebody clicks on the link then it should go to AlFresco and get the data from that URI.

The problem is that if I try to use this URL from the IE the the Alfresco Login page is displayed. However when I enter the password I am able to view the document.

What's the way I could bypass this Login page

Thanks…
1 REPLY 1

rdanner
Champ in-the-making
Champ in-the-making
Hi I want to download (open/save) a file from my JBoss portal. I have created a Web Service to log into the Alfresco server and go to a particular file in a directory by using
WebService.getRepositoryService.get(new Reference[]{SAMPLE_FILE},STORE,null)

I can read the content of the file by using contentService.read function.

Now I don't want to read the file content. I just want to read the contentURI and display on my portlet. When somebody clicks on the link then it should go to AlFresco and get the data from that URI.

The problem is that if I try to use this URL from the IE the the Alfresco Login page is displayed. However when I enter the password I am able to view the document.

What's the way I could bypass this Login page

Thanks…

Check out this link and see if it helps
http://wiki.alfresco.com/wiki/URL_Addressability#Ticket_URL_Argument


I dont fully understand your question but after you have a look here maybe you can clarify.