I need to do so since I'm running from azure Webjob. here is my code:
public static void ExtractTGZ(Stream inStream)
{
using (Stream gzipStream = new GZipInputStream(inStream))
{
using (var tarIn = new TarInputStream(gzipStream))
{
TarEntry tarEntry;
tarEntry = tarIn.GetNextEntry();
while (tarEntry != null)
{
Console.WriteLine(tarEntry.Name);
tarEntry = tarIn.GetNextEntry();
}
}
}
}
when calling ExtractTGZ, I'm doing so with MemoryStream when getting to the "GetNextEntry", the "tarEntry" is null, but when using FileStream instead of the MemoryStream I get values