<?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 retrieve uploaded files from alfresco database? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16752#M7413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have an attachment ID (from when you uploaded the attachment), then you can use the taskService&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;taskService.getAttachment(attachmentId);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If this returns not null, then you can get the attachment content using:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;InputStream attachmentStream = taskService.getAttachmentContent(attachmentId);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you were looking for,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2017 12:49:43 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-04-24T12:49:43Z</dc:date>
    <item>
      <title>How to retrieve uploaded files from alfresco database?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16751#M7412</link>
      <description>Made a process to upload a file.Also added a execution listener to the process.I want to know how to retrieve the uploaded file by execution listenerBelow is my code for execution listenerI want&amp;nbsp;to know how to get that file from database.I want to know about java libraries to access file from databa</description>
      <pubDate>Fri, 21 Apr 2017 12:53:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16751#M7412</guid>
      <dc:creator>kangkan</dc:creator>
      <dc:date>2017-04-21T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve uploaded files from alfresco database?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16752#M7413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have an attachment ID (from when you uploaded the attachment), then you can use the taskService&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;taskService.getAttachment(attachmentId);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If this returns not null, then you can get the attachment content using:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;InputStream attachmentStream = taskService.getAttachmentContent(attachmentId);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you were looking for,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 12:49:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16752#M7413</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-24T12:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve uploaded files from alfresco database?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16753#M7414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;I may need more help regarding this as I am new to this.&lt;/P&gt;&lt;P&gt;Can you please please provide the full implementation of this.&lt;/P&gt;&lt;P&gt;I am doing something like this&lt;/P&gt;&lt;P&gt;Also how do you get the &lt;EM&gt;attachment id&lt;/EM&gt;&amp;nbsp;provide you know the &lt;EM&gt;form id&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TaskService taskService &amp;nbsp;= processEngine.getTaskService();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(taskService.getAttachment("uploadurl")!=null){&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;InputStream attachmentStream = taskService.getAttachmentContent(attachmentId);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here&amp;nbsp;&lt;EM&gt;uploadurl&amp;nbsp;&lt;/EM&gt;is the form id for file upload&lt;/P&gt;&lt;P&gt;I think I am not doing it right&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 06:13:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-retrieve-uploaded-files-from-alfresco-database/m-p/16753#M7414</guid>
      <dc:creator>kangkan</dc:creator>
      <dc:date>2017-04-25T06:13:43Z</dc:date>
    </item>
  </channel>
</rss>

