<?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 Import Image from URL into Expression Column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15922#M14546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the new Expression Role column in JMP12 to organize some images.&amp;nbsp; I can drag an image into a cell from a webpage, but I would like to use a formula to add an image with a known URL pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I drag an image into the cell, I get a cell of the form,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Image(Char To Blob( "&amp;nbsp;&amp;nbsp; /* bunch of stuff */&amp;nbsp;&amp;nbsp; ", "base64compressed" ), "jpeg")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, but this requires me to manually drag each image into the data table.&amp;nbsp; Can I add an image into a data table cell using a formula directly from the URL location?&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Image(" &lt;A class="unlinked" title="http://www.sas.com/content/dam/jmp/images/design/social-share/jmp-com-share.jpg"&gt;http://www.sas.com/content/dam/jmp/images/design/social-share/jmp-com-share.jpg ")&lt;/A&gt;&amp;nbsp; // ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Dec 2015 02:02:56 GMT</pubDate>
    <dc:creator>robot</dc:creator>
    <dc:date>2015-12-14T02:02:56Z</dc:date>
    <item>
      <title>Import Image from URL into Expression Column</title>
      <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15922#M14546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the new Expression Role column in JMP12 to organize some images.&amp;nbsp; I can drag an image into a cell from a webpage, but I would like to use a formula to add an image with a known URL pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I drag an image into the cell, I get a cell of the form,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Image(Char To Blob( "&amp;nbsp;&amp;nbsp; /* bunch of stuff */&amp;nbsp;&amp;nbsp; ", "base64compressed" ), "jpeg")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, but this requires me to manually drag each image into the data table.&amp;nbsp; Can I add an image into a data table cell using a formula directly from the URL location?&amp;nbsp; Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Image(" &lt;A class="unlinked" title="http://www.sas.com/content/dam/jmp/images/design/social-share/jmp-com-share.jpg"&gt;http://www.sas.com/content/dam/jmp/images/design/social-share/jmp-com-share.jpg ")&lt;/A&gt;&amp;nbsp; // ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 02:02:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15922#M14546</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2015-12-14T02:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Import Image from URL into Expression Column</title>
      <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15923#M14547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New Image(Open(URL)); seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;New Table&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"test"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Add Rows&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;New Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Image"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Expression&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier; min-height: 15px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Image&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;New Image&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #032ce4;"&gt;Open&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.jmp.com/external-link.jspa?url=http://www.sas.com/content/dam/jmp/images/design/social-share/jmp-com-share.jpg" rel="nofollow" target="_blank"&gt;http://www.sas.com/content/dam/jmp/images/design/social-share/jmp-com-share.jpg&lt;/A&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 17px; line-height: normal; font-family: Courier;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 07:20:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15923#M14547</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-12-14T07:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Import Image from URL into Expression Column</title>
      <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15924#M14548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks MS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 15:24:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15924#M14548</guid>
      <dc:creator>robot</dc:creator>
      <dc:date>2015-12-14T15:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import Image from URL into Expression Column</title>
      <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15925#M14549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is fantastic! Just what I was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not very knowledgeable in JSL, maybe someone can help me modify the proposed script to my need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the above to import an image from my computer resulting in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Table("test", Add Rows(1), New Column("Image", Expression));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:Image[1] = New Image("C:\Photos\Capture.png"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would love to have is a JSL script that I can save into an existing table and that, when run, would do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Look at table variable "Location" and read the folder path of the images I will want to import. Lets say this is "C:\Photos"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- Look at column 1 and read the content of cell 1 which is the name of the first image to import. lets say this is "holiday1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- Join the path and the image name to plug it into the above script to import the image in cell 1 of "column 2"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Loop through all the rows to import all the images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds feasible to me, just I do not know how to script many parts of the code. I am going to start researching on how to write this but if someone gets to a solution...:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:31:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15925#M14549</guid>
      <dc:creator>morenopelaez_p</dc:creator>
      <dc:date>2016-01-04T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Import Image from URL into Expression Column</title>
      <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15926#M14550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need a loop and this is faster anyways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;New Table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"test"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Add Rows&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: teal;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;New Column&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"ImageTitle"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Character&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Nominal&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Set Values&lt;STRONG&gt;({&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"Capture"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;}))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;New Column&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"Image"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Expression&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; Formula&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #0000dd;"&gt;New Image&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Location &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;ImageTitle &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;||&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;".png"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;Set Table Variable&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"Location"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: purple;"&gt;"C:\Photos\"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: navy;"&gt;Image with path C:\Photos\Capture.png will be displayed in column 2 (:Image)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 17:54:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15926#M14550</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2016-01-04T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import Image from URL into Expression Column</title>
      <link>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15927#M14551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Fantastic! That is exactly what I was looking for.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks a lot for the help @msharp !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:05:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-Image-from-URL-into-Expression-Column/m-p/15927#M14551</guid>
      <dc:creator>morenopelaez_p</dc:creator>
      <dc:date>2016-01-05T16:05:33Z</dc:date>
    </item>
  </channel>
</rss>

