<?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 Re: How to read FieldTypeBlob from graphic.attributes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458047#M42284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the blob is an image, it's probably a &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Base64"&gt;base64&lt;/A&gt;&lt;SPAN&gt; endcoded image, which means you can display it in your html by adding &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;data:image/png;base64&lt;/SPAN&gt;&lt;SPAN&gt; in front of the string in a popup or somewhere else. Change image type based on what it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So as an infotemplate, you might write it as&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;img src="data:image/gif;base64,${IMAGE_FIELDNAME}" /&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jun 2013 12:38:17 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2013-06-19T12:38:17Z</dc:date>
    <item>
      <title>How to read FieldTypeBlob from graphic.attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458046#M42283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've bytea field type in postgis database and bytea i.e Blob datatype is not displayed in graphic.attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the rest service url the field has value &amp;lt;blob&amp;gt;.But I need to know how to read the blob value and display as images.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://hostname/arcgis/rest/services/service/FeatureServer/1/1/htmlpopup"&gt;http://hostname/arcgis/rest/services/service/FeatureServer/1/1/htmlpopup&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to read the blob value in arcgis javascript API?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 05:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458046#M42283</guid>
      <dc:creator>JosephineREgina</dc:creator>
      <dc:date>2013-06-19T05:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to read FieldTypeBlob from graphic.attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458047#M42284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the blob is an image, it's probably a &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Base64"&gt;base64&lt;/A&gt;&lt;SPAN&gt; endcoded image, which means you can display it in your html by adding &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;data:image/png;base64&lt;/SPAN&gt;&lt;SPAN&gt; in front of the string in a popup or somewhere else. Change image type based on what it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So as an infotemplate, you might write it as&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;img src="data:image/gif;base64,${IMAGE_FIELDNAME}" /&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 12:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458047#M42284</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2013-06-19T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to read FieldTypeBlob from graphic.attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458048#M42285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might also find use for the dojox/encoding/base64 module&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.9/dojox/encoding/base64.html"&gt;http://dojotoolkit.org/reference-guide/1.9/dojox/encoding/base64.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 19:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-read-fieldtypeblob-from-graphic-attributes/m-p/458048#M42285</guid>
      <dc:creator>JacksonGilman1</dc:creator>
      <dc:date>2013-06-19T19:42:02Z</dc:date>
    </item>
  </channel>
</rss>

