<?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 How to programmatically import and unpack a zip in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-programmatically-import-and-unpack-a-zip/m-p/185382#M138512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to import a zip file using the ImporterService. I'd like to have the zip file unpacked as part of the process. I know this functionality exists in the GUI (I am using Alfresco 2.1) but finding the way to do this in the API is proving difficult. ACPImportPackageHandler only seems to handle ACP files (despite the import GUI pages lumping import of ACP and zip files together) and FileImportPackageHandler seems to think I should be passing it XML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A quick look on the forum revealed this &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?t=2490" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?t=2490&lt;/A&gt;&lt;SPAN&gt; which looks like it should do the trick and should have been submitted to the Alfresco codebase but can I find it…?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2009 14:37:25 GMT</pubDate>
    <dc:creator>ifairman</dc:creator>
    <dc:date>2009-02-03T14:37:25Z</dc:date>
    <item>
      <title>How to programmatically import and unpack a zip</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-programmatically-import-and-unpack-a-zip/m-p/185382#M138512</link>
      <description>Hi,I'm trying to import a zip file using the ImporterService. I'd like to have the zip file unpacked as part of the process. I know this functionality exists in the GUI (I am using Alfresco 2.1) but finding the way to do this in the API is proving difficult. ACPImportPackageHandler only seems to han</description>
      <pubDate>Tue, 03 Feb 2009 14:37:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-programmatically-import-and-unpack-a-zip/m-p/185382#M138512</guid>
      <dc:creator>ifairman</dc:creator>
      <dc:date>2009-02-03T14:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically import and unpack a zip</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-programmatically-import-and-unpack-a-zip/m-p/185383#M138513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I may have the answer to my own question. Looking at the source for org.alfresco.repo.action.executor.ImporterActionExecuter it seems that the Importer API is used for ACP files but not for zip files - the action unzips the zip to a temporary directory and then loads the content in file-by-file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bit of a shame really…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2009 16:01:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-programmatically-import-and-unpack-a-zip/m-p/185383#M138513</guid>
      <dc:creator>ifairman</dc:creator>
      <dc:date>2009-02-03T16:01:31Z</dc:date>
    </item>
  </channel>
</rss>

