<?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 回复： How to use JSL to restore a picture binary to a picture in a table? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573720#M78271</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;u = "https://community.jmp.com/t5/image/serverpage/image-id/47607iC302B97FB4C8A9DF/image-size/large?v=v2&amp;amp;px=999";

rs=New HTTP Request(URL(u),Method("GET"));
rr=rs&amp;lt;&amp;lt;Send;

img=open(rr,"PNG");
dt=New Table("kk",Add Rows(1),New Column("A", Expression),New Column("B", Expression),New Column("C", Expression));
dt[1,1]=img;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capture.png" style="width: 817px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47648i206FA420905B070C/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you don't need the httprequest, open can fetch the url directly. Above, httprequest fetched a BLOB from the server and open accepts the BLOB in place of a file name; open needs the explicit file type since the BLOB does not know the extension.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Nov 2022 14:22:55 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2022-11-26T14:22:55Z</dc:date>
    <item>
      <title>How to use JSL to restore a picture binary to a picture in a table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573379#M78238</link>
      <description>&lt;P&gt;The image binary file is downloaded from the web using JSL in the format of.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-11-25_11-07-14.png" style="width: 537px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47607iC302B97FB4C8A9DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-11-25_11-07-14.png" alt="2022-11-25_11-07-14.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I tried the following JSL, which cannot be loaded as a picture in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rs=New HTTP Request(URL(u),Method("GET"),Headers(h));
rr=rs&amp;lt;&amp;lt;Send;

img="New Image(Char To Blob("||rr||"base64compressed\!"),\!"png\!")";
dt=New Table("kk",Add Rows(1),New Column("A", Expression),New Column("B", Expression),New Column("C", Expression));
dt[1,1]=img;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have attached the results of this binary file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:03:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573379#M78238</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T16:03:12Z</dc:date>
    </item>
    <item>
      <title>回复： How to use JSL to restore a picture binary to a picture in a table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573399#M78239</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Use&amp;nbsp; browser to download the image and save it to a local file. Then load it with JMP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-11-25_11-20-12.png" style="width: 981px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47608i89595BEE6C70CA97/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-11-25_11-20-12.png" alt="2022-11-25_11-20-12.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 03:22:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573399#M78239</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-11-25T03:22:43Z</dc:date>
    </item>
    <item>
      <title>回复： How to use JSL to restore a picture binary to a picture in a table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573402#M78240</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Does it indicate that this binary requires further conversion?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt=Decode64 Blob(rr);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-11-25_10-46-50.png" style="width: 270px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47610iE6E15E2DB4CC0C0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-11-25_10-46-50.png" alt="2022-11-25_10-46-50.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 03:26:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573402#M78240</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-11-25T03:26:12Z</dc:date>
    </item>
    <item>
      <title>回复： How to use JSL to restore a picture binary to a picture in a table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573720#M78271</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;u = "https://community.jmp.com/t5/image/serverpage/image-id/47607iC302B97FB4C8A9DF/image-size/large?v=v2&amp;amp;px=999";

rs=New HTTP Request(URL(u),Method("GET"));
rr=rs&amp;lt;&amp;lt;Send;

img=open(rr,"PNG");
dt=New Table("kk",Add Rows(1),New Column("A", Expression),New Column("B", Expression),New Column("C", Expression));
dt[1,1]=img;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capture.png" style="width: 817px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47648i206FA420905B070C/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you don't need the httprequest, open can fetch the url directly. Above, httprequest fetched a BLOB from the server and open accepts the BLOB in place of a file name; open needs the explicit file type since the BLOB does not know the extension.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 14:22:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-restore-a-picture-binary-to-a-picture-in-a/m-p/573720#M78271</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-11-26T14:22:55Z</dc:date>
    </item>
  </channel>
</rss>

