<?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: SAS JOB EXECUTION SHOW IMAGE BACKGROUND in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/758486#M239486</link>
    <description>There are several approaches:&lt;BR /&gt;&lt;BR /&gt;* host the image somewhere (as Chris says)&lt;BR /&gt;* embed an SVG&lt;BR /&gt;* Base64 encode the image (here's an online converter- &lt;A href="https://base64.guru/converter/encode/image" target="_blank"&gt;https://base64.guru/converter/encode/image&lt;/A&gt;)&lt;BR /&gt;* embed the image as base64 in a seperate job and decode on the way out (this works great for STPs on SAS 9)&lt;BR /&gt;* Simply place the image in SAS Drive and reference it as a file with the _file URL parameter&lt;BR /&gt;&lt;BR /&gt;For an example of loading images, sounds and other content you can check out this Mario game, that deploys easily to Viya: &lt;A href="https://sasapps.io/sas-streamed-apps" target="_blank"&gt;https://sasapps.io/sas-streamed-apps&lt;/A&gt;</description>
    <pubDate>Fri, 30 Jul 2021 19:19:48 GMT</pubDate>
    <dc:creator>AllanBowe</dc:creator>
    <dc:date>2021-07-30T19:19:48Z</dc:date>
    <item>
      <title>SAS JOB EXECUTION SHOW IMAGE BACKGROUND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/757127#M239077</link>
      <description>&lt;P&gt;i have a sas job execution. This job must show an image in background. At the moment i don't see the image.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dipand_0-1627392148600.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61899i6695FAA8F330CE01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dipand_0-1627392148600.png" alt="dipand_0-1627392148600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;file _webout;&lt;BR /&gt;put '&amp;lt;!DOCTYPE html&amp;gt;';&lt;BR /&gt;put '&amp;lt;html&amp;gt;';&lt;BR /&gt;put '&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Hello World!&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;';&lt;BR /&gt;put '&amp;lt;body&amp;gt;';&lt;BR /&gt;put "&amp;lt;h1&amp;gt;Hello %sysfunc(htmlencode(&amp;amp;MYNAME))!&amp;lt;/h1&amp;gt;";&lt;BR /&gt;put '&amp;lt;img src="/sasgrid/files/image.png"&amp;gt;';&lt;BR /&gt;put '&amp;lt;/body&amp;gt;';&lt;BR /&gt;put '&amp;lt;/html&amp;gt;';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe i must save the image in an particular path?&lt;BR /&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 13:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/757127#M239077</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2021-07-27T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS JOB EXECUTION SHOW IMAGE BACKGROUND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/757128#M239078</link>
      <description>&lt;P&gt;The image file must be stored in a location where the web browser can find it, either with a fully qualified URL or a location relative to the HTML file you're viewing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If running in SAS Studio or EG, the HTML file will be "downloaded" as a result but the image file will not, so your browser cannot find it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A solution might be to embed the image inline (like SVG) as supported in HTML5. This is documented in the ODS HTML5 statement options...but it's trickier to do if you're relying on DATA step to build the HTML by hand.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 13:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/757128#M239078</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-07-27T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS JOB EXECUTION SHOW IMAGE BACKGROUND</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/758486#M239486</link>
      <description>There are several approaches:&lt;BR /&gt;&lt;BR /&gt;* host the image somewhere (as Chris says)&lt;BR /&gt;* embed an SVG&lt;BR /&gt;* Base64 encode the image (here's an online converter- &lt;A href="https://base64.guru/converter/encode/image" target="_blank"&gt;https://base64.guru/converter/encode/image&lt;/A&gt;)&lt;BR /&gt;* embed the image as base64 in a seperate job and decode on the way out (this works great for STPs on SAS 9)&lt;BR /&gt;* Simply place the image in SAS Drive and reference it as a file with the _file URL parameter&lt;BR /&gt;&lt;BR /&gt;For an example of loading images, sounds and other content you can check out this Mario game, that deploys easily to Viya: &lt;A href="https://sasapps.io/sas-streamed-apps" target="_blank"&gt;https://sasapps.io/sas-streamed-apps&lt;/A&gt;</description>
      <pubDate>Fri, 30 Jul 2021 19:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-JOB-EXECUTION-SHOW-IMAGE-BACKGROUND/m-p/758486#M239486</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-07-30T19:19:48Z</dc:date>
    </item>
  </channel>
</rss>

