Closed GoogleCodeExporter closed 9 years ago
I am also experiencing this issue. Is there something wrong with the tar format?
Original comment by aparker....@gmail.com
on 19 May 2011 at 7:27
make sure that streams are closed properly and tar and gzip are not the stream
owners. If you are using something like this:
using (MemoryStream ms = new MemoryStream())
using (GZipOutputStream gzipStream = new GZipOutputStream(ms))
using (TarOutputStream tarOutputStream = new TarOutputStream(gzipStream))
{
.....
TarEntry entry = TarEntry.CreateTarEntry(tarName);
entry.Size = fileSize;
tarOutputStream.PutNextEntry(entry);
.....
tarOutputStream.CloseEntry();
tarOutputStream.IsStreamOwner = false;
tarOutputStream.Close();
gzipStream.IsStreamOwner = false;
gzipStream.Close();
ms.Flush();
}
Original comment by vnancha...@gmail.com
on 19 May 2011 at 11:39
Original comment by vasilt...@gmail.com
on 17 Jun 2011 at 8:31
Original issue reported on code.google.com by
vnancha...@gmail.com
on 12 Jan 2011 at 2:29