<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display an image from the repository in a web page in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289828#M242958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody knows ? (or understands what i meant ?)&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 13:25:33 GMT</pubDate>
    <dc:creator>denz</dc:creator>
    <dc:date>2016-11-24T13:25:33Z</dc:date>
    <item>
      <title>Display an image from the repository in a web page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289825#M242955</link>
      <description>Hi,This is simply question from a newbie :- how can I display an image from the repository in a web page ? (without login...)&amp;nbsp;(for example on a webpage &amp;lt;img src="myimage.jpg"&amp;gt;)Actually,I've got a webscript "MyWebScript"&amp;nbsp;that I can't modidy (I don't have access to the server system), but I over</description>
      <pubDate>Tue, 22 Nov 2016 11:00:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289825#M242955</guid>
      <dc:creator>denz</dc:creator>
      <dc:date>2016-11-22T11:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display an image from the repository in a web page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289826#M242956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry I'm not clear about what you mean.&lt;BR /&gt;I guess you can implement an proxy servlet in your application ,in your proxy servlet download the image from alfresco server using opencmis api or webscript api and then display it in a web page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:57:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289826#M242956</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-22T15:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display an image from the repository in a web page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289827#M242957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for trying to help me.&lt;/P&gt;&lt;P&gt;First of all, I'd just like to display an image (put in my repository "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;/Company Home/Data Dictionary/Web Scripts/MyWebScript" or in Guest space...), in a web page with &amp;lt;img src="myimage.jpg" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I tryed&amp;nbsp;&lt;A class="unlinked"&gt;https://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content?id=f2b90ae5-b590-4e8a-910d-4ea055d7cd04&amp;amp;append=true&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;but Alfresco asks credentials... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;after, it displays :&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;&amp;nbsp; "status" :&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 401,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Unauthorized",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "The request requires HTTP authentication."&amp;nbsp;&amp;nbsp; },&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "message" : "10230046 Authentication failed for Web Script org\/alfresco\/api\/opencmis\/OpenCMIS.get",&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I'd like to override JS Script of my webscript (URL is "&lt;SPAN class=""&gt;/alfresco/scripts/myscript/validate-fields-config.js")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 08:59:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289827#M242957</guid>
      <dc:creator>denz</dc:creator>
      <dc:date>2016-11-23T08:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display an image from the repository in a web page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289828#M242958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody knows ? (or understands what i meant ?)&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 13:25:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289828#M242958</guid>
      <dc:creator>denz</dc:creator>
      <dc:date>2016-11-24T13:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display an image from the repository in a web page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289829#M242959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost all of the URL request to alfresco requires authentication,you can't use it like &amp;lt;img src="myimage.jpg" /&amp;gt; directly.&lt;/P&gt;&lt;P&gt;Only after login and get a login ticket then you can visit url &lt;A href="https://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content?id=f2b90ae5-b590-4e8a-910d-4ea055d7cd04&amp;amp;append=true" rel="nofollow noopener noreferrer"&gt;https://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content?id=f2b90ae5-b590-4e8a-910d-4ea055d7cd04&amp;amp;append=true&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What you need to do is to use a proxy servlet,in your proxy servlet:&lt;BR /&gt;you can login to alfresco and get the ticket or you can just download the image.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 13:53:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289829#M242959</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2016-11-24T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display an image from the repository in a web page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289830#M242960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution that works with any file, but I don't know if it's a good way.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;put your file on a repository&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;click on "Share" (displays something like &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://localhost/share/s/TqGniKKbRMiFtwOtdkwZQg" rel="nofollow noopener noreferrer" target="_blank"&gt;https://localhost/share/s/TqGniKKbRMiFtwOtdkwZQg&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Paste the URL and keep the last string (ex: TqGniKKbRMiFtwOtdkwZQg)&lt;/LI&gt;&lt;LI&gt;Use the URL's file like this:&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A&gt;https://localhost/share/proxy/alfresco-noauth/api/internal/shared/node/YOURSTRING/content/NAMEFILE&lt;/A&gt; &lt;/P&gt;&lt;/BLOCKQUOTE&gt;YOURSTRING is for ex TqGniKKbRMiFtwOtdkwZQg&lt;BR /&gt;YOURNAME is the name you want to the file&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can for example display an image from Alfresco repository like this :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;img src="&lt;A&gt;https://localhost/share/proxy/alfresco-noauth/api/internal/shared/node/TqGniKKbRMiFtwOtdkwZQg/content/logo.JPG&lt;/A&gt;" /&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;WARNING : When you share the file, it becomes a public file ! So becareful what you share&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:44:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-an-image-from-the-repository-in-a-web-page/m-p/289830#M242960</guid>
      <dc:creator>denz</dc:creator>
      <dc:date>2017-02-10T14:44:43Z</dc:date>
    </item>
  </channel>
</rss>

