cancel
Showing results for 
Search instead for 
Did you mean: 

Display Image from Repo

drozes
Champ in-the-making
Champ in-the-making
Hi guys;

I have an image inside the Guest Home and would like to display it through my webapp.

I know I can display the URL through the API with this url:
http://URL/alfresco/service/api/path/content/workspace/SpacesStore/Company%20Home/Guest%20Home/CHC-U...

The problem is that alfresco is not directly accessible through the browser.  My webapp which is talking to Alfresco needs a method to get this content from the Repo and display it as an image.  Quickstart somehow achieves this but have not been able to figure it out.

I can make a http request from my Webapp server and get the image content but now I need my webapp (which is running quickstart) to output this content and update the content type so the image renders.


Any suggestions?

Thank you!
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
There is one more url associated with the document like view in browser

e.x.
http://localhost:8080/alfresco/d/d/workspace/SpacesStore/a8527f6a-3a0f-4abd-99e8-98665158ff27/test.g...

If you pest this directly in address bar you will be able to see the image.
Now if you embedded this in your page then it should fetch the image from the repo.