<?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: Embed image(png or jpeg) in email as body or background, not as attachment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Embed-image-png-or-jpeg-in-email-as-body-or-background-not-as/m-p/415343#M280115</link>
    <description>&lt;P&gt;The best approach would be to move your png over to the content server and reference it there, but if that's not an option - there's the base64 fallback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'trick' is to know that image files (such as a png) can be converted and read into your &amp;lt;img&amp;gt; tag as &lt;EM&gt;text&lt;/EM&gt; - as explained in this communities &lt;A href="http://www.sascommunity.org/wiki/Tips:Images_as_text_-_use_Base_64_encoding" target="_self"&gt;post,&lt;/A&gt;&amp;nbsp;the syntax is like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;img src="data&amp;amp;colon;image/png;base64,R0lGODlhEAAQAKL/AP//////
AMDAwMDAwICAgICA\AAAAAAAAACH5BAEAAAIALAAAAAAQAB
AAAANFKEpMpjAKAkYYTkJqu2sbII6kSCzApXbqM1VrPLiUWpYGFwB
F7/+51ID3KwaHReNrlwS+iM0CTRTtTavSjWHL7W41YE0CADs="&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how do you get your dashboard converted to base64 encoding?&amp;nbsp; Thankfully Michael Dixon has a SAS script that will do just that, check out this &lt;A href="https://support.selerity.com.au/hc/en-us/articles/223345708-Tip-SAS-and-Base64" target="_self"&gt;post&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this will get you on your way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 00:02:02 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2017-11-22T00:02:02Z</dc:date>
    <item>
      <title>Embed image(png or jpeg) in email as body or background, not as attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Embed-image-png-or-jpeg-in-email-as-body-or-background-not-as/m-p/415267#M280114</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dashboard saved in unix server as jpeg/png. Trying to send it to folks in email not as attachment. I have tried couple different ways,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. put image in proc report as style - it didn't transfer to email&lt;/P&gt;&lt;P&gt;2. ods html text&amp;nbsp;ods html text='&amp;lt;img src="/xxx/images/xxx.jpg"&amp;gt;&amp;lt;/img&amp;gt;';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;None of them worked well. Please help me getting this work out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 17:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Embed-image-png-or-jpeg-in-email-as-body-or-background-not-as/m-p/415267#M280114</guid>
      <dc:creator>jkim1012</dc:creator>
      <dc:date>2017-11-21T17:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Embed image(png or jpeg) in email as body or background, not as attachment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Embed-image-png-or-jpeg-in-email-as-body-or-background-not-as/m-p/415343#M280115</link>
      <description>&lt;P&gt;The best approach would be to move your png over to the content server and reference it there, but if that's not an option - there's the base64 fallback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'trick' is to know that image files (such as a png) can be converted and read into your &amp;lt;img&amp;gt; tag as &lt;EM&gt;text&lt;/EM&gt; - as explained in this communities &lt;A href="http://www.sascommunity.org/wiki/Tips:Images_as_text_-_use_Base_64_encoding" target="_self"&gt;post,&lt;/A&gt;&amp;nbsp;the syntax is like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;img src="data&amp;amp;colon;image/png;base64,R0lGODlhEAAQAKL/AP//////
AMDAwMDAwICAgICA\AAAAAAAAACH5BAEAAAIALAAAAAAQAB
AAAANFKEpMpjAKAkYYTkJqu2sbII6kSCzApXbqM1VrPLiUWpYGFwB
F7/+51ID3KwaHReNrlwS+iM0CTRTtTavSjWHL7W41YE0CADs="&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how do you get your dashboard converted to base64 encoding?&amp;nbsp; Thankfully Michael Dixon has a SAS script that will do just that, check out this &lt;A href="https://support.selerity.com.au/hc/en-us/articles/223345708-Tip-SAS-and-Base64" target="_self"&gt;post&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this will get you on your way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 00:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Embed-image-png-or-jpeg-in-email-as-body-or-background-not-as/m-p/415343#M280115</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2017-11-22T00:02:02Z</dc:date>
    </item>
  </channel>
</rss>

