<?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: How to download a file from Repository through java? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-download-a-file-from-repository-through-java/m-p/243642#M196772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might want to use ContentService to get a reader on the node's content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ContentReader cr = contentService.getReader(actionedUponNodeRef, ContentModel.PROP_CONTENT);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then use the obtained ContentReader for further processing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;File f = new File("/var/tmp/foo.bar");&lt;BR /&gt;cr.getContent(f);&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/ContentService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/ContentService.html&lt;/A&gt;&lt;SPAN&gt; for full details&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jun 2010 09:32:34 GMT</pubDate>
    <dc:creator>gyro_gearless</dc:creator>
    <dc:date>2010-06-16T09:32:34Z</dc:date>
    <item>
      <title>How to download a file from Repository through java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-download-a-file-from-repository-through-java/m-p/243641#M196771</link>
      <description>I am using alfresco to act as a file transfer hub between various application.Now I want to customize an action which can ftp or copy the file to a target location outside of alfresco (it should a physical folder on OS level, not an alfresco virtual drive)So I extend the class: ActionExecuterAbstrac</description>
      <pubDate>Tue, 15 Jun 2010 22:47:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-download-a-file-from-repository-through-java/m-p/243641#M196771</guid>
      <dc:creator>v317173</dc:creator>
      <dc:date>2010-06-15T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to download a file from Repository through java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-download-a-file-from-repository-through-java/m-p/243642#M196772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might want to use ContentService to get a reader on the node's content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ContentReader cr = contentService.getReader(actionedUponNodeRef, ContentModel.PROP_CONTENT);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then use the obtained ContentReader for further processing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;File f = new File("/var/tmp/foo.bar");&lt;BR /&gt;cr.getContent(f);&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/ContentService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/repository/ContentService.html&lt;/A&gt;&lt;SPAN&gt; for full details&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 09:32:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-download-a-file-from-repository-through-java/m-p/243642#M196772</guid>
      <dc:creator>gyro_gearless</dc:creator>
      <dc:date>2010-06-16T09:32:34Z</dc:date>
    </item>
  </channel>
</rss>

