<?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 HTML+JS: how display raster field in InfoWindow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654518#M61026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In context of InfoWindow&lt;/P&gt;&lt;P&gt;&amp;lt;img src=\"${Photo}\" /&amp;gt;&lt;/P&gt;&lt;P&gt;not work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 12:48:56 GMT</pubDate>
    <dc:creator>AlekseyShulga</dc:creator>
    <dc:date>2014-12-15T12:48:56Z</dc:date>
    <item>
      <title>HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654518#M61026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In context of InfoWindow&lt;/P&gt;&lt;P&gt;&amp;lt;img src=\"${Photo}\" /&amp;gt;&lt;/P&gt;&lt;P&gt;not work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 12:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654518#M61026</guid>
      <dc:creator>AlekseyShulga</dc:creator>
      <dc:date>2014-12-15T12:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654519#M61027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of the "Photo" field? Is it a url? Is it a base64 encoded string?&lt;/P&gt;&lt;P&gt;If you could provide a sample that may help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 14:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654519#M61027</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-12-15T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654520#M61028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, it is type "Raster" in ArcGIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 13:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654520#M61028</guid>
      <dc:creator>AlekseyShulga</dc:creator>
      <dc:date>2014-12-16T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654521#M61029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the REST I see this field as &lt;STRONG&gt;esriFieldTypeBlob&lt;/STRONG&gt;.&lt;EM&gt; &lt;/EM&gt;I found sample:&lt;/P&gt;&lt;P&gt;&amp;lt;img src="data:image/png;base64,${Photo}" /&amp;gt;&lt;/P&gt;&lt;P&gt;but image not display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 07:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654521#M61029</guid>
      <dc:creator>AlekseyShulga</dc:creator>
      <dc:date>2014-12-17T07:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654522#M61030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need to convert your raster Blob data to base64 &lt;SPAN style="text-decoration: underline;"&gt;before&lt;/SPAN&gt; you apply it to the image src as Rene suggests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way I have seen to do this on the client side is using the HTML5 canvas object. For example: &lt;A href="http://stackoverflow.com/questions/24787880/how-to-get-the-right-image-data-in-base64-format-using-html5-canvas?rq=1" title="http://stackoverflow.com/questions/24787880/how-to-get-the-right-image-data-in-base64-format-using-html5-canvas?rq=1"&gt;javascript - How to get the right image data in base64 format using HTML5 canvas - Stack Overflow&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option may be using the Dojo toolkit: &lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojox/encoding/base64.html" title="http://dojotoolkit.org/reference-guide/1.7/dojox/encoding/base64.html"&gt;dojox.encoding.base64 — The Dojo Toolkit - Reference Guide&lt;/A&gt; &lt;/P&gt;&lt;P&gt;(info from this post: &lt;A href="https://community.esri.com/thread/76017"&gt;How to read FieldTypeBlob from graphic.attributes&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the HTML5 canvas object will have compatibility issues with older browsers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Encoding the Blob to base64 server-side is relatively simple but it looks like you need to do this on the client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 07:48:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654522#M61030</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-12-17T07:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654523#M61031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read this post &lt;A _jive_internal="true" data-containerid="2128" data-containertype="14" data-objectid="76017" data-objecttype="1" href="https://community.esri.com/thread/76017" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;"&gt;How to read FieldTypeBlob from graphic.attributes &lt;/A&gt;and I try this, but image not display (I wrote this above)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 08:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654523#M61031</guid>
      <dc:creator>AlekseyShulga</dc:creator>
      <dc:date>2014-12-17T08:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654524#M61032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be I define dojox incorect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([..., "dojox/encoding/base64", ...],&lt;/P&gt;&lt;P&gt;function (..., base64, ...) {}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 08:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654524#M61032</guid>
      <dc:creator>AlekseyShulga</dc:creator>
      <dc:date>2014-12-17T08:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: HTML+JS: how display raster field in InfoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654525#M61033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, no... I was wrong... field type is &lt;EM style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;esriFieldTypeRaster&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 09:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/html-js-how-display-raster-field-in-infowindow/m-p/654525#M61033</guid>
      <dc:creator>AlekseyShulga</dc:creator>
      <dc:date>2014-12-17T09:39:18Z</dc:date>
    </item>
  </channel>
</rss>

