<?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: How to read gz file from URL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565275#M77728</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gzblob = loadtextfile("https://drawoutside.com/example.txt.gz",blob());
blob = gzipuncompress(gzblob);
// one way...
text = blobtochar(blob);
show(text);
// another
dt = open(blob,"text");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 05 Nov 2022 04:03:09 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2022-11-05T04:03:09Z</dc:date>
    <item>
      <title>How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/564945#M77712</link>
      <description>&lt;P&gt;I have 1 gz file in URL like &lt;A target="_blank" rel="noopener"&gt;http://&amp;lt;&amp;lt;domainName&amp;gt;&amp;gt;/testCSV.txt.gz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to read it from JMP&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:56:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/564945#M77712</guid>
      <dc:creator>ProbitMonster53</dc:creator>
      <dc:date>2023-06-10T23:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565275#M77728</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gzblob = loadtextfile("https://drawoutside.com/example.txt.gz",blob());
blob = gzipuncompress(gzblob);
// one way...
text = blobtochar(blob);
show(text);
// another
dt = open(blob,"text");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Nov 2022 04:03:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565275#M77728</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-11-05T04:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565310#M77734</link>
      <description>&lt;P&gt;its able to open file however it showing only first line of file. bt If we unzip manually that file and open we can see data.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 08:40:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565310#M77734</guid>
      <dc:creator>ProbitMonster53</dc:creator>
      <dc:date>2022-11-05T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565337#M77736</link>
      <description>&lt;P&gt;We'll need more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Can you share a file? If not, can you share the log output from&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;...
show(length(gzblob));
blob = gzipuncompress(gzblob);
show(length(blob));
show(left(char(blob),2000)); 
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The goal of the &lt;EM&gt;2000&lt;/EM&gt; is to see enough of the first and second line of data to understand what is truncating the file. I'll guess there is a null byte between the lines, and the last show(...) will display it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you printing the data to the JMP log or opening a table?&lt;/LI&gt;
&lt;LI&gt;Are there any log messages?&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt; If we unzip...and open we can see data&lt;/EM&gt; - what tool do you use to see it? Notepad? JMP? JSL?&lt;/LI&gt;
&lt;LI&gt;Are you on Windows or Mac? What version of JMP?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 05 Nov 2022 10:37:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565337#M77736</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-11-05T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565362#M77741</link>
      <description>&lt;P&gt;Yes, actually that GZ file itself is CSV each row separated by next line&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 18:30:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565362#M77741</guid>
      <dc:creator>ProbitMonster53</dc:creator>
      <dc:date>2022-11-05T18:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565363#M77742</link>
      <description>&lt;P&gt;Are you printing the data to the JMP log or opening a table? -&amp;gt; opening it as table&lt;BR /&gt;Are there any log messages? --&amp;gt; log shows on headers&lt;BR /&gt;If we unzip...and open we can see data - what tool do you use to see it? Notepad? JMP? JSL? --&amp;gt; if we unzip and open in any editor it will shows all data.&lt;BR /&gt;Are you on Windows or Mac? What version of JMP? --&amp;gt; window machine&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 18:34:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565363#M77742</guid>
      <dc:creator>ProbitMonster53</dc:creator>
      <dc:date>2022-11-05T18:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to read gz file from URL</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565403#M77749</link>
      <description>&lt;P&gt;Without seeing any data it is going to be hard to figure out what you are seeing. The log window picture you supplied stops just short of showing some data. If the data is sensitive, you might want to work through Tech Support rather than posting it here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What should happen, with a valid xxx.csv.gz file, should look like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="opening a gz compressed csv file into a JMP data table" style="width: 898px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47074i5F58FF224B2E89C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="opening a gz compressed csv file into a JMP data table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;opening a gz compressed csv file into a JMP data table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 10:30:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-gz-file-from-URL/m-p/565403#M77749</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-11-06T10:30:58Z</dc:date>
    </item>
  </channel>
</rss>

