<?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 Export Image from Map and send it to Server in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-image-from-map-and-send-it-to-server/m-p/648302#M60428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying replace WebADF with the API for Javscript. We have an ASP .NET application. Until now we had a functionality, where the user could export the map to an Image (PNG) or an PDF. I know, that this is possible with the &lt;/SPAN&gt;&lt;STRONG&gt;esri.dijit.Print&lt;/STRONG&gt;&lt;SPAN&gt; package. But that doesn't work for us. We need the export the map into a bytestream and send it to the ASP .NET server and create a customized image or PDF (multi paged report) there. Is this possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Web ADF we used the &lt;/SPAN&gt;&lt;STRONG&gt;IMapFunctionality.DrawExtent &lt;/STRONG&gt;&lt;SPAN&gt;method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 16:07:30 GMT</pubDate>
    <dc:creator>LukasKalt</dc:creator>
    <dc:date>2013-03-25T16:07:30Z</dc:date>
    <item>
      <title>Export Image from Map and send it to Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-image-from-map-and-send-it-to-server/m-p/648302#M60428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying replace WebADF with the API for Javscript. We have an ASP .NET application. Until now we had a functionality, where the user could export the map to an Image (PNG) or an PDF. I know, that this is possible with the &lt;/SPAN&gt;&lt;STRONG&gt;esri.dijit.Print&lt;/STRONG&gt;&lt;SPAN&gt; package. But that doesn't work for us. We need the export the map into a bytestream and send it to the ASP .NET server and create a customized image or PDF (multi paged report) there. Is this possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Web ADF we used the &lt;/SPAN&gt;&lt;STRONG&gt;IMapFunctionality.DrawExtent &lt;/STRONG&gt;&lt;SPAN&gt;method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 16:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-image-from-map-and-send-it-to-server/m-p/648302#M60428</guid>
      <dc:creator>LukasKalt</dc:creator>
      <dc:date>2013-03-25T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export Image from Map and send it to Server</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-image-from-map-and-send-it-to-server/m-p/648303#M60429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If people are wondering. I found a solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use esri.tasks.PrintTask. This class sends the result of the URL of the generated image. Which can be sent to the server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var task = new esri.tasks.PrintTask(printUrl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(task, 'onComplete', function (result) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PageMethods.SendMap(result.url, onSucceeded, onFailed);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = new esri.tasks.PrintParameters();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.map = map;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var template = new esri.tasks.PrintTemplate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.exportOptions = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 700,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 500,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpi: 96&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.format = "JPG";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.layout = "MAP_ONLY";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.template = template;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; task.execute(params);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-image-from-map-and-send-it-to-server/m-p/648303#M60429</guid>
      <dc:creator>LukasKalt</dc:creator>
      <dc:date>2013-04-03T14:03:11Z</dc:date>
    </item>
  </channel>
</rss>

