<?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>idea ArcGIS Pro SDK for .NET: Support for System.IO.Stream in Geoprocessing tools in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/arcgis-pro-sdk-for-net-support-for-system-io/idi-p/1241108</link>
    <description>&lt;P&gt;I've been working on an add-in for Pro 3.0 that automates fetching various GIS data from online sources, processing them and adding them to our projects.&amp;nbsp; Sometimes it would be very handy if the geoprocessing tools could accept a System.IO.Stream as input rather than a file.&lt;/P&gt;&lt;P&gt;Currently, I am downloading GeoJSON files archived in .zip files and have to extract the files to disk before passing the extracted files to geoprocessing tools. (In this case, JSON to Features)&amp;nbsp; If I could pass a Stream, I wouldn't have to write all the files to disk first, I could access the ZipArchiveEntry's Stream directly without extracting, processing, and deleting the files again.&lt;/P&gt;&lt;P&gt;I can imagine other use cases as well, like passing a Stream directly from HttpClient to a geoprocessing tool.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 15:50:30 GMT</pubDate>
    <dc:creator>DanielRatzlaff</dc:creator>
    <dc:date>2022-12-14T15:50:30Z</dc:date>
    <item>
      <title>ArcGIS Pro SDK for .NET: Support for System.IO.Stream in Geoprocessing tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcgis-pro-sdk-for-net-support-for-system-io/idi-p/1241108</link>
      <description>&lt;P&gt;I've been working on an add-in for Pro 3.0 that automates fetching various GIS data from online sources, processing them and adding them to our projects.&amp;nbsp; Sometimes it would be very handy if the geoprocessing tools could accept a System.IO.Stream as input rather than a file.&lt;/P&gt;&lt;P&gt;Currently, I am downloading GeoJSON files archived in .zip files and have to extract the files to disk before passing the extracted files to geoprocessing tools. (In this case, JSON to Features)&amp;nbsp; If I could pass a Stream, I wouldn't have to write all the files to disk first, I could access the ZipArchiveEntry's Stream directly without extracting, processing, and deleting the files again.&lt;/P&gt;&lt;P&gt;I can imagine other use cases as well, like passing a Stream directly from HttpClient to a geoprocessing tool.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 15:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcgis-pro-sdk-for-net-support-for-system-io/idi-p/1241108</guid>
      <dc:creator>DanielRatzlaff</dc:creator>
      <dc:date>2022-12-14T15:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK for .NET: Support for System.IO.Stream in Geoprocessing tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/arcgis-pro-sdk-for-net-support-for-system-io/idc-p/1255461#M23170</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/628152"&gt;@DanielRatzlaff&lt;/a&gt;&amp;nbsp;Would this code be helpful to you?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import json  
import zipfile  

d = None  
data = None  
with zipfile.ZipFile("./data/drug-event-Q4-0001-of-0013.json.zip", "r") as z:
   for filename in z.namelist():  
      print(filename)  
      with z.open(filename) as f:  
         data = f.read()  
         d = json.loads(data.decode("utf-8"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/arcgis-pro-sdk-for-net-support-for-system-io/idc-p/1255461#M23170</guid>
      <dc:creator>JonathanNeal</dc:creator>
      <dc:date>2023-02-06T19:48:15Z</dc:date>
    </item>
  </channel>
</rss>

