<?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: blob to data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586257#M79189</link>
    <description>&lt;P&gt;I have unarchived that post&lt;LI-MESSAGE title="Load CSV from variable" uid="208453" url="https://community.jmp.com/t5/Discussions/Load-CSV-from-variable/m-p/208453#U208453" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; .&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 17:17:35 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-01-03T17:17:35Z</dc:date>
    <item>
      <title>blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586214#M79183</link>
      <description>&lt;P&gt;I have a blob, output from runprogram.&amp;nbsp; The blob looks like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;blb = Char To Blob ("col1,col2~0D~0D~0AA,C~0D~0D~0AB,D~0D~0D~0A", "ascii~hex")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'd like to convert it to a data table.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/String-to-data-table-code-optimization/td-p/244529" target="_self"&gt;This post&lt;/A&gt;&amp;nbsp;indicates that Open() can open a blob, but&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(blb)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;does not work.&lt;/P&gt;&lt;P&gt;"Cannot open tale in access or evaluation of 'Open', Open/*###*/(blb)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RunProgram can also return text, but then I need to convert a string to a data table, which seems fussy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like a scripting solution please, JMP v 15&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:44:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586214#M79183</guid>
      <dc:creator>gpilgrim</dc:creator>
      <dc:date>2023-06-08T16:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586251#M79185</link>
      <description>&lt;P&gt;The Open() function works with files. The argument should be a file path. You have to stream the blog out first before you can open it.&amp;nbsp;The discussion you cited uses Open() after a string is saved to a text file in a format similar to CSV. Craig suggests that Open() works with a blog as the argument instead of a path, but that is not explicitly tried.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you confirmed that the Char to Blob() function returns a valid blob?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry - I am confused now!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:28:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586251#M79185</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-01-03T16:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586252#M79186</link>
      <description>&lt;P&gt;I'm not sure how you're getting your blob or whether it's correctly formatted, but here is an example where I save a data table as a standard JMP file, then read it in as a blob.&amp;nbsp; Once I have that blob it's quite simple to convert it into a table (last line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt &amp;lt;&amp;lt; Save( "$TEMP\BLOB_TEST.jmp" );
Close( dt, No Save );

file = Load Text File( "$TEMP\BLOB_TEST.jmp", "Blob" );

table = Open( file, JMP );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:28:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586252#M79186</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2023-01-03T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586255#M79187</link>
      <description>&lt;P&gt;The blob comes from RunProgram, with ReadFunction set to "blob".&amp;nbsp; The program being called in RunProgram writes a csv to stdout, where it's picked up by RunProgram and returned as a blob.&amp;nbsp; I can also have it returned as text, but like I said, parsing text into a data frame seems fussy.&amp;nbsp; If I'm wrong about that please let me know.&lt;/P&gt;&lt;P&gt;What I don't want to do is have the non-JMP program write an actual csv file and then open that, because juggling temporary csv files will not work in my application&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:51:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586255#M79187</guid>
      <dc:creator>gpilgrim</dc:creator>
      <dc:date>2023-01-03T16:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586256#M79188</link>
      <description>&lt;P&gt;1) Char to Blob and its contents are what is returned by call to RunProgram&lt;/P&gt;&lt;P&gt;2) The actual output of the non-JMP program called in RunProgram is a csv file written to stdout.&amp;nbsp; I do not want to write the csv to a file location, so no file path&lt;/P&gt;&lt;P&gt;3) From the linked discussion it seems like using a blob instead of a path in Open was tried &lt;A href="https://community.jmp.com/t5/Discussions/Load-CSV-from-variable/m-p/208453" target="_self"&gt;here&lt;/A&gt;, but that post is no longer available for some reason&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:55:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586256#M79188</guid>
      <dc:creator>gpilgrim</dc:creator>
      <dc:date>2023-01-03T16:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586257#M79189</link>
      <description>&lt;P&gt;I have unarchived that post&lt;LI-MESSAGE title="Load CSV from variable" uid="208453" url="https://community.jmp.com/t5/Discussions/Load-CSV-from-variable/m-p/208453#U208453" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; .&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 17:17:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586257#M79189</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-03T17:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: blob to data table</title>
      <link>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586260#M79190</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key, as shown in the unarchived post you shared is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(blb, "text")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That solves my problem&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 17:23:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/blob-to-data-table/m-p/586260#M79190</guid>
      <dc:creator>gpilgrim</dc:creator>
      <dc:date>2023-01-03T17:23:46Z</dc:date>
    </item>
  </channel>
</rss>

