<?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: retrieving an image from the repository using webscripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147212#M102772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are you trying to do with your image content? If you just want to write it back on the request, there's already a web script for doing that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/HTTP_API_Reference#Content_Retrieval" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/HTTP_API_Reference#Content_Retrieval&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or the download servlet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The javascript/template api's only allow access to the content as a string.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 12:49:00 GMT</pubDate>
    <dc:creator>davidc</dc:creator>
    <dc:date>2007-09-10T12:49:00Z</dc:date>
    <item>
      <title>retrieving an image from the repository using webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147211#M102771</link>
      <description>Hi, I am trying to retrieve a picture from the repository using webscripts :var image = search.findNode("workspace://SpacesStore/89636147-5c76-11dc-b969-3bdfab08a4b3");model.imgContent = image.content;‍‍Somehow, the content stored in model.imgContent is corrupt. The size is different than the origin</description>
      <pubDate>Mon, 10 Sep 2007 07:55:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147211#M102771</guid>
      <dc:creator>emichbe</dc:creator>
      <dc:date>2007-09-10T07:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving an image from the repository using webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147212#M102772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are you trying to do with your image content? If you just want to write it back on the request, there's already a web script for doing that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/HTTP_API_Reference#Content_Retrieval" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/HTTP_API_Reference#Content_Retrieval&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or the download servlet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/URL_Addressability#DownloadContentServlet&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The javascript/template api's only allow access to the content as a string.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 12:49:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147212#M102772</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-10T12:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving an image from the repository using webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147213#M102773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The thing I would like to do is to generate a document, like with WordML, that contains the different images I would like to see in my document (checked with checkboxes in a custom view) using the javascript/template api.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 13:40:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147213#M102773</guid>
      <dc:creator>emichbe</dc:creator>
      <dc:date>2007-09-10T13:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving an image from the repository using webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147214#M102774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you require the content to be embedded in your doc, or can you refer to the content via url?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The freemarker api provides a content download url e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;document.url;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 14:04:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147214#M102774</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-10T14:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving an image from the repository using webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147215#M102775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should be embedded. I will try that and let you know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 14:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-an-image-from-the-repository-using-webscripts/m-p/147215#M102775</guid>
      <dc:creator>emichbe</dc:creator>
      <dc:date>2007-09-10T14:07:28Z</dc:date>
    </item>
  </channel>
</rss>

