<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[qUncompress problem]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I get the strange error with qUncompress but I don't know what is problem with my configuration.<br />
Here is my code:</p>
<pre><code>#include &lt;QCoreApplication&gt;
#include &lt;QByteArray&gt;
#include &lt;QFile&gt;
#include &lt;QDebug&gt;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QFile f("/user/XXXXXX/home/AgeRegression");
     if (f.exists())
          qDebug() &lt;&lt; "File exists";
      else
          qDebug() &lt;&lt; "Missing file";
    f.open(QIODevice::ReadOnly);
    QByteArray qb = f.readAll();
    qb = qUncompress(qb);
    qDebug()&lt;&lt;"Successfully";
    const char *qt_version = qVersion();
    qDebug()&lt;&lt; QString(qt_version);
    return a.exec();
}
</code></pre>
<p dir="auto">The file AgeRegression you can download from <a href="https://github.com/biometrics/openbr-models/tree/master/algorithms" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.<br />
And here is result:</p>
<pre><code>File exists
qUncompress: Z_DATA_ERROR: Input data is corrupted
Successfully
"5.3.2"
</code></pre>
<p dir="auto">The interesting thing is the other people seems to don't have issues when they run it on MacOS or Ubuntu while mine is Fedora 19.<br />
Can someone see my problem and help me? Thank in advance.</p>
<p dir="auto"><strong>UPDATE:</strong>  Now when I try with the file compressed by the file which was compressed by qCompress, I got the same issues.</p>
]]></description><link>https://forum.qt.io/topic/56096/quncompress-problem</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 11:12:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/56096.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Jul 2015 13:52:55 GMT</pubDate><ttl>60</ttl></channel></rss>