<?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 Configuring web tool output to export jpegs in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/configuring-web-tool-output-to-export-jpegs/m-p/89634#M2731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a&amp;nbsp;python script tool that exports attachments (jpegs) using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open(fileLocation + os.sep + str(rel_objectid) + "_" + Name, 'wb').write(binaryRep.tobytes())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, fileLocation was set as&amp;nbsp;arcpy.GetParameterAsText(0), routing to my temp folder. I then changed it to arcpy.env.scratchFolder and also tried ' r"C:\temp". The&amp;nbsp;script tool worked with no issues in ArcGIS Pro. When exporting to WebApp Builder widget, the output is locked and grayed out where I cannot make edits. While I did check the option to allow for export of these image attachments, held in a tableview or dbf, the tool executes but does not return output (the output tab in the widget is blank). Is there an issue with the code itself, as it's intended to write locally? Is it maybe that I will need to subscribe to Image Hosting on AGP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2020 14:17:52 GMT</pubDate>
    <dc:creator>NeveenD</dc:creator>
    <dc:date>2020-08-11T14:17:52Z</dc:date>
    <item>
      <title>Configuring web tool output to export jpegs</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/configuring-web-tool-output-to-export-jpegs/m-p/89634#M2731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a&amp;nbsp;python script tool that exports attachments (jpegs) using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open(fileLocation + os.sep + str(rel_objectid) + "_" + Name, 'wb').write(binaryRep.tobytes())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, fileLocation was set as&amp;nbsp;arcpy.GetParameterAsText(0), routing to my temp folder. I then changed it to arcpy.env.scratchFolder and also tried ' r"C:\temp". The&amp;nbsp;script tool worked with no issues in ArcGIS Pro. When exporting to WebApp Builder widget, the output is locked and grayed out where I cannot make edits. While I did check the option to allow for export of these image attachments, held in a tableview or dbf, the tool executes but does not return output (the output tab in the widget is blank). Is there an issue with the code itself, as it's intended to write locally? Is it maybe that I will need to subscribe to Image Hosting on AGP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 14:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/configuring-web-tool-output-to-export-jpegs/m-p/89634#M2731</guid>
      <dc:creator>NeveenD</dc:creator>
      <dc:date>2020-08-11T14:17:52Z</dc:date>
    </item>
  </channel>
</rss>

