<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240060</link>
    <title>MATLAB Central Newsreader - unzip/gunzip into memory</title>
    <description>Feed for thread: unzip/gunzip into memory</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 28 Nov 2008 09:31:03 -0500</pubDate>
      <title>unzip/gunzip into memory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240060#613687</link>
      <author>E </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I would like to unzip/gunzip a file into memory instead of writing it to a file first and then &lt;br&gt;
having to read it in again. Is this possible ?&lt;br&gt;
I had a look at the gunzip command and it involves java, can I get to the unzipped data before it is written to file ?&lt;br&gt;
&lt;br&gt;
Thanks !</description>
    </item>
    <item>
      <pubDate>Fri, 28 Nov 2008 13:30:19 -0500</pubDate>
      <title>Re: unzip/gunzip into memory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240060#613718</link>
      <author>Yuri Geshelin</author>
      <description>&quot;E &quot; &amp;lt;ehelden@hotmail.com&amp;gt; wrote in message &amp;lt;ggodom$65o$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to unzip/gunzip a file into memory instead of writing it to a file first and then &lt;br&gt;
&amp;gt; having to read it in again. Is this possible ?&lt;br&gt;
&amp;gt; I had a look at the gunzip command and it involves java, can I get to the unzipped data before it is written to file ?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks !&lt;br&gt;
&lt;br&gt;
Hi &lt;br&gt;
&lt;br&gt;
I don't think it is possible. What prevents you from reading the file from disk immediately after gunzipping it? Surely not the lack of disk space. If the time constraints are issue, try virtual drive. This is not matlab topic.</description>
    </item>
    <item>
      <pubDate>Fri, 28 Nov 2008 15:29:32 -0500</pubDate>
      <title>Re: unzip/gunzip into memory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240060#613736</link>
      <author>Walter Roberson</author>
      <description>E wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; I would like to unzip/gunzip a file into memory instead of writing it to a file first and then &lt;br&gt;
&amp;gt; having to read it in again. Is this possible ?&lt;br&gt;
&lt;br&gt;
Yes, you could write a mex interface to zlib.&lt;br&gt;
&lt;br&gt;
Alternately, you could mmap the output file. It will still be written to disk, but it&lt;br&gt;
would also be available in memory.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
.signature note: I am now avoiding replying to unclear or ambiguous postings.&lt;br&gt;
Please review questions before posting them. Be specific. Use examples of what you mean,&lt;br&gt;
of what you don't mean. Specify boundary conditions, and data classes and value&lt;br&gt;
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?</description>
    </item>
    <item>
      <pubDate>Tue, 06 Jan 2009 11:56:25 -0500</pubDate>
      <title>Re: unzip/gunzip into memory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240060#620054</link>
      <author>Ljubomir Josifovski</author>
      <description>On 28 Nov 2008, 15:29, Walter Roberson &amp;lt;rober...@hushmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; E wrote:&lt;br&gt;
&amp;gt; &amp;gt; I would like to unzip/gunzip a file into memory instead of writing it to a file first and then&lt;br&gt;
&amp;gt; &amp;gt; having to read it in again. Is this possible ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Yes, you could write a mex interface tozlib.&lt;br&gt;
&lt;br&gt;
Somewhat related - does anyone know of a Matlab native implementation&lt;br&gt;
of zlib?&lt;br&gt;
(say analogous to csharp native implementation&lt;br&gt;
&lt;a href=&quot;http://www.icsharpcode.net/OpenSource/SharpZipLib/&quot;&gt;http://www.icsharpcode.net/OpenSource/SharpZipLib/&lt;/a&gt; etc)&lt;br&gt;
&lt;br&gt;
I expect unlikely but thought I'd better ask.&lt;br&gt;
&lt;br&gt;
Thanks in advance,&lt;br&gt;
Ljubomir</description>
    </item>
  </channel>
</rss>

