<div dir="ltr"><p dir="ltr">Em 02/11/2015 16:31, "Boudhayan Gupta" <<a href="mailto:bgupta@kde.org" target="_blank">bgupta@kde.org</a>> escreveu:<br>
><br>
> I'd first ascertain whether the file is corrupt.<br>
I'm pretty sure the file is OK. As a workaround, I had to write the downloaded contents into a temporary file, then extract the contents from the temp file using KTar, but I have to change that, since it's bringing me some problems. So, the problem isn't in the file.<br></p>
<p dir="ltr">> Why don't you dump<br>
> the tar to a QFile and manually use tar -xvf to extract it, just to<br>
> test whether the download is working?<br>
><br>
> On 2 November 2015 at 23:23, Luiz Romário Santana Rios<br>
> <<a href="mailto:luizromario@gmail.com" target="_blank">luizromario@gmail.com</a>> wrote:<br>
> > Hello,<br>
> ><br>
> > I'm trying to decompress a XZ archive downloaded using<br>
> > QNetworkAccessManager, so, according to the documents, I have to pass<br>
> > the QNetworkReply pointer to a KCompressionDevice and, then, use it as<br>
> > Ktar's device like this:<br>
> ><br>
> ><a href="https://gist.github.com/anonymous/b8fb686367f518a7dbb5" target="_blank"> https://gist.github.com/anonymous/b8fb686367f518a7dbb5</a><br>
> ><br>
> > The problem is that KTar::open() fails and returns false. The file I'm<br>
> > trying to extract has the following structure more or less:<br>
> > /root<br>
> > /root/dir<br>
> > /root/dir/file1<br>
> > /root/dir/file2<br>
> > ...<br>
> ><br>
> > So, as far as I've seen, the code runs normally when entering /root<br>
> > and /root/dir, but, pretty high in the stack, at<br>
> > KXzFilter::uncompress(), the call to lzma_code returns<br>
> > LZMA_FORMAT_ERROR while trying to uncompress file1 (or file2, I'm not<br>
> > sure). Here's the call stack:<br>
> ><br>
> ><a href="https://gist.github.com/anonymous/9ea380cfe48daadb5971" target="_blank"> https://gist.github.com/anonymous/9ea380cfe48daadb5971</a><br>
> ><br>
> > Is this a bug? If it's a bug, how can I proceed to fix it?<br>
> ><br>
> > Thanks for the attention.<br>
> ><br>
> > --<br>
> > Luiz Romário Santana Rios<br>
> > _______________________________________________<br>
> > Kde-frameworks-devel mailing list<br>
> ><a href="mailto:Kde-frameworks-devel@kde.org" target="_blank"> Kde-frameworks-devel@kde.org</a><br>
> ><a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank"> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
> _______________________________________________<br>
> Kde-frameworks-devel mailing list<br>
><a href="mailto:Kde-frameworks-devel@kde.org" target="_blank"> Kde-frameworks-devel@kde.org</a><br>
><a href="https://mail.kde.org/mailman/listinfo/kde-frameworks-devel" target="_blank"> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel</a><br>
</p>
</div>