<?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 Retrieving remote content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-remote-content/m-p/286886#M240016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a migration from an old system that has millions of images, very few of which will ever be viewed but it is impossible to know which will and wont be viewed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I could inport 5TB of images "just in case" but it seems to make more sense to leave these behind their own private web server and retrieve them when required. However, I do not want that web server to be public so I want to access the images behind it via Alfresco webscripts executed from Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to display them inside share so what I need to be able to do is create a web script that will stream content but that first retrieves that content from a remote http server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can easily write the webscript to stream the content if the content was a node in Alfresco, but there does not seem to be the properties on model to directly return content. I can set contentNode but not, so far as I can see, "content" or at least I cannot find any example of anyone directly setting the content stream; only ever passing a node from which the content must be streamed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This tends to suggest my only solution is to retrieve the content using java and create a node (temporary) inside Alfresco and then return that content node. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions as to how I can basically do&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;model.content = remoteURL.contentsStream&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in a webscript of kind="org.alfresco.repository.content.stream"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Apr 2014 06:55:52 GMT</pubDate>
    <dc:creator>rjohnson</dc:creator>
    <dc:date>2014-04-12T06:55:52Z</dc:date>
    <item>
      <title>Retrieving remote content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-remote-content/m-p/286886#M240016</link>
      <description>I have a migration from an old system that has millions of images, very few of which will ever be viewed but it is impossible to know which will and wont be viewed.Now, I could inport 5TB of images "just in case" but it seems to make more sense to leave these behind their own private web server and</description>
      <pubDate>Sat, 12 Apr 2014 06:55:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-remote-content/m-p/286886#M240016</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2014-04-12T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving remote content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieving-remote-content/m-p/286887#M240017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looking at your scenario, you will have to take the java implementation path to achieve this. Read the image from the remote server and create a node in alfresco and use the content of a node for rendering.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 18:12:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieving-remote-content/m-p/286887#M240017</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-12T18:12:00Z</dc:date>
    </item>
  </channel>
</rss>

