<?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: Problem Unzipping file zipped with python in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/problem-unzipping-file-zipped-with-python/m-p/211126#M6490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I work around this problem with the geoprocessing zipping the files using C# and now it works great. The problem must be with some of the process creating a SHP with the python script that doesnt free some resources or something like that and does not allow me to zip the files, correctly, after the process is over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all!!!&lt;BR /&gt;&lt;BR /&gt;I have this problem, I use a Geoprocess Service to extract data to a SHP file and when it's over within the same geoprocess I call another python script to "ZIP" those generated files. When I try to read that ZIP file in my Flex Viewer application I receive this error: &lt;BR /&gt;&lt;BR /&gt;Error: invalid block type (type == 3)&lt;BR /&gt; at com.cesan.common.files.zip::Inflater/inflate()&lt;C&gt;&lt;BR /&gt; at com.cesan.common.files.zip::ZipFile/getInput()&lt;C&gt;&lt;BR /&gt;&lt;BR /&gt;I've made some tests and I find out that if I extract the files to a folder later on then zip them with an external tool like &lt;STRONG&gt;WINRAR&lt;/STRONG&gt;, it actually works and the Flex can read that ZIP with no problem.&lt;BR /&gt;&lt;BR /&gt;I'm using the zipFile library and using the example of ESRI to zip the file, I'm also trying to do it with an external application, "&lt;STRONG&gt;7z&lt;/STRONG&gt;", after the creating is complete in the same geoprocess and gave me the above error... I'm clueless about what I'm doing wrong&amp;nbsp; or what happens in the process. If someone have or had any advice I really appreciate it!!! It is urgent!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your help!!!&lt;/C&gt;&lt;/C&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 06:38:01 GMT</pubDate>
    <dc:creator>FranciscoBereciartu</dc:creator>
    <dc:date>2014-02-05T06:38:01Z</dc:date>
    <item>
      <title>Problem Unzipping file zipped with python</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/problem-unzipping-file-zipped-with-python/m-p/211125#M6489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this problem, I use a Geoprocess Service to extract data to a SHP file and when it's over within the same geoprocess I call another python script to "ZIP" those generated files. When I try to read that ZIP file in my Flex Viewer application I receive this error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: invalid block type (type == 3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.cesan.common.files.zip::Inflater/inflate()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.cesan.common.files.zip::ZipFile/getInput()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've made some tests and I find out that if I extract the files to a folder later on then zip them with an external tool like &lt;/SPAN&gt;&lt;STRONG&gt;WINRAR&lt;/STRONG&gt;&lt;SPAN&gt;, it actually works and the Flex can read that ZIP with no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the zipFile library and using the example of ESRI to zip the file, I'm also trying to do it with an external application, "&lt;/SPAN&gt;&lt;STRONG&gt;7z&lt;/STRONG&gt;&lt;SPAN&gt;", after the creating is complete in the same geoprocess and gave me the above error... I'm clueless about what I'm doing wrong&amp;nbsp; or what happens in the process. If someone have or had any advice I really appreciate it!!! It is urgent!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for your help!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 10:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/problem-unzipping-file-zipped-with-python/m-p/211125#M6489</guid>
      <dc:creator>FranciscoBereciartu</dc:creator>
      <dc:date>2014-02-04T10:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Unzipping file zipped with python</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/problem-unzipping-file-zipped-with-python/m-p/211126#M6490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I work around this problem with the geoprocessing zipping the files using C# and now it works great. The problem must be with some of the process creating a SHP with the python script that doesnt free some resources or something like that and does not allow me to zip the files, correctly, after the process is over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi all!!!&lt;BR /&gt;&lt;BR /&gt;I have this problem, I use a Geoprocess Service to extract data to a SHP file and when it's over within the same geoprocess I call another python script to "ZIP" those generated files. When I try to read that ZIP file in my Flex Viewer application I receive this error: &lt;BR /&gt;&lt;BR /&gt;Error: invalid block type (type == 3)&lt;BR /&gt; at com.cesan.common.files.zip::Inflater/inflate()&lt;C&gt;&lt;BR /&gt; at com.cesan.common.files.zip::ZipFile/getInput()&lt;C&gt;&lt;BR /&gt;&lt;BR /&gt;I've made some tests and I find out that if I extract the files to a folder later on then zip them with an external tool like &lt;STRONG&gt;WINRAR&lt;/STRONG&gt;, it actually works and the Flex can read that ZIP with no problem.&lt;BR /&gt;&lt;BR /&gt;I'm using the zipFile library and using the example of ESRI to zip the file, I'm also trying to do it with an external application, "&lt;STRONG&gt;7z&lt;/STRONG&gt;", after the creating is complete in the same geoprocess and gave me the above error... I'm clueless about what I'm doing wrong&amp;nbsp; or what happens in the process. If someone have or had any advice I really appreciate it!!! It is urgent!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for your help!!!&lt;/C&gt;&lt;/C&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 06:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/problem-unzipping-file-zipped-with-python/m-p/211126#M6490</guid>
      <dc:creator>FranciscoBereciartu</dc:creator>
      <dc:date>2014-02-05T06:38:01Z</dc:date>
    </item>
  </channel>
</rss>

