using (var msSrc = new MemoryStream(in_arrByte))
using (var gs = new System.IO.Compression.GZipStream(msSrc, System.IO.Compression.CompressionMode.Decompress))
{
using (var msDest = new MemoryStream())
{
gs.CopyTo(msDest);
msDest.Position = 0;
result = new byte[msDest.Length];
msDest.Read(result, 0, result.Length);
}
}
I don’t think we have a ZIP. Perhaps it’s an encryption?
Most are RFT files (and readable) but this in a Word Doc in the orignal application. But those docx arr usually as well zipped. However, unzipping ist not possible
using (var msSrc = new MemoryStream(in_arrByte))
using (var gs = new System.IO.Compression.ZLibStream(msSrc, System.IO.Compression.CompressionMode.Decompress,true))
{
using (var msDest = new MemoryStream())
{
gs.CopyTo(msDest);
msDest.Position = 0;
result = new byte[msDest.Length];
msDest.Read(result, 0, result.Length);
}
}
Your are my hero!!!
That’s realy cool and I wasn’t aware of the ZLib issue. It’s work fine now. I can extract hundreds of rtf now. Thank you very much Yoichi!!!