<?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 dynamically zip a shapefiles which created in silverlight api 2.4 at&amp;nbsp; runtime? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-dynamically-zip-a-shapefiles-which-created/m-p/409022#M10642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my silverlight API 2.4 application, it allows user to do spatial query. the query result as feature set is saved to a shapefiles which created by a geoprocessing service using in the application. the shapefiles are located in&amp;nbsp; in a sub-folder with JOBID in ArcGISJobs folder for user download. I have the downloading a file function but cannot download a folder, so I need to zip those files into a zip file so that user can download this file.&amp;nbsp; the question is that how to zip those files at runtime by silverlight application? Any help is appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 14:06:05 GMT</pubDate>
    <dc:creator>XiujuZhou</dc:creator>
    <dc:date>2012-05-17T14:06:05Z</dc:date>
    <item>
      <title>How to dynamically zip a shapefiles which created in silverlight api 2.4 at  runtime?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-dynamically-zip-a-shapefiles-which-created/m-p/409022#M10642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my silverlight API 2.4 application, it allows user to do spatial query. the query result as feature set is saved to a shapefiles which created by a geoprocessing service using in the application. the shapefiles are located in&amp;nbsp; in a sub-folder with JOBID in ArcGISJobs folder for user download. I have the downloading a file function but cannot download a folder, so I need to zip those files into a zip file so that user can download this file.&amp;nbsp; the question is that how to zip those files at runtime by silverlight application? Any help is appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-dynamically-zip-a-shapefiles-which-created/m-p/409022#M10642</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2012-05-17T14:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically zip a shapefiles which created in silverlight api 2.4 at  runt</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-dynamically-zip-a-shapefiles-which-created/m-p/409023#M10643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, the Silverlight app does not compress these files for you. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need to do is to make your result shapefiles into a zip file on server side, more specifically, these should be done as one part job of your geoprocessing service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to write python script to do this, grab your shapefiles as middle result, zip them into one file, and make this zip file as final gp service result to be downloaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's sample code of how to zip and unzip files in python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/009300000037000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/009300000037000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 00:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-dynamically-zip-a-shapefiles-which-created/m-p/409023#M10643</guid>
      <dc:creator>wangzhifang</dc:creator>
      <dc:date>2012-05-18T00:32:05Z</dc:date>
    </item>
  </channel>
</rss>

