<?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 Accessing the Image Content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235600#M188730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to handle the Web Scripts. I tried with the simple web script to access the image content. Here is my sample code of that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;image.get.desc.xml&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;webscript&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;shortname&amp;gt;Image&amp;lt;/shortname&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;description&amp;gt;Image description&amp;lt;/description&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;url&amp;gt;/image&amp;lt;/url&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;image.get.html.ftl&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;img src="/alfresco/d/d/workspace/SpacesStore/37cc4323-710d-4c55-b193-68efdaa9eae4/smiley.gif" alt="Alfresco" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine when i hit the URL &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/image" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/image&lt;/A&gt;&lt;SPAN&gt; after logging in Alfresco correctly.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My requirement is to call this URL from other Web application. But it is not working when i call from my other web appliation. I didnt get the image when i hit the URL .&amp;nbsp; :cry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my sample JSP code where i try to hit the web script URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;index.jsp &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageEncoding="ISO-8859-1"%&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "&lt;/SPAN&gt;&lt;A href="http://www.w3.org/TR/html4/loose.dtd" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/TR/html4/loose.dtd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;title&amp;gt;Image&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/image" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/image&lt;/A&gt;&lt;SPAN&gt;" &amp;gt; click to view the image&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me out where am going wrong. Thanks in advance.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 07:00:57 GMT</pubDate>
    <dc:creator>sowmiya</dc:creator>
    <dc:date>2009-11-17T07:00:57Z</dc:date>
    <item>
      <title>Accessing the Image Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235600#M188730</link>
      <description>I am new to handle the Web Scripts. I tried with the simple web script to access the image content. Here is my sample code of that.image.get.desc.xml&amp;lt;webscript&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;shortname&amp;gt;Image&amp;lt;/shortname&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;description&amp;gt;Image description&amp;lt;/description&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;url&amp;gt;/image&amp;lt;/url&amp;amp;</description>
      <pubDate>Tue, 17 Nov 2009 07:00:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235600#M188730</guid>
      <dc:creator>sowmiya</dc:creator>
      <dc:date>2009-11-17T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the Image Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235601#M188731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to configure your Web Script for a Guest Access:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#Authenticating" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#Authenticating&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this way you can access to this webscript without authentication, but all the contents must be stored in the Guest Home space in Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you need to add the following element in your descriptor image.get.desc.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;lt;shortname&amp;gt;Image&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Image description&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;/image&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;lt;authentication&amp;gt;guest&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;And then you have to invoke this webscript using a guest parameter in this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;a href="&lt;A href="http://localhost:8080/alfresco/service/image?guest=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/image?guest=true&lt;/A&gt;" &amp;gt; click to view the image&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 18:28:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235601#M188731</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-11-17T18:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing the Image Content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235602#M188732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply OpenPj &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per you said, I created the content in Guest Home Space and tried accessing the content straight away by the url &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/d/d/workspace/SpacesStore/96d3871f-0e45-42c2-a34d-21bef469a4ca/homeSmiley.gif?guest=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/d/d/workspace/SpacesStore/96d3871f-0e45-42c2-a34d-21bef469a4ca/homeSmiley.gif?guest=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its working fine&amp;nbsp;&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i try to give the same guest=true for the web script that access the content which i mentioned above, its not working&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; . I dont know what is the reason behind it. Web script url is&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/image?guest=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/image?guest=true&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please tell me why that is not working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 09:06:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-the-image-content/m-p/235602#M188732</guid>
      <dc:creator>sowmiya</dc:creator>
      <dc:date>2009-11-24T09:06:12Z</dc:date>
    </item>
  </channel>
</rss>

