Search Unity

Broken GZIP! since 2009

Discussion in 'Editor & General Support' started by UnityUse, Dec 15, 2014.

  1. UnityUse

    UnityUse

    Joined:
    Jan 14, 2014
    Posts:
    5
    Shocking to me that this can still be broken.
    It compiles with the code.
    using System.IO.Compression;

    FileStream fileStream = new FileStream(filename, FileMode.Create, FileAccess.Write);
    GZipStream compressionStream = new GZipStream(fileStream, CompressionMode.Compress);
    StreamWriter writer = new StreamWriter(compressionStream);

    But when used it gives this error.
    DllNotFoundException: MonoPosixHelper
    System.IO.Compression.DeflateStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen, Boolean gzip)

    I'm not the one on crack here.
    Unity obviously has zip , check their folder zlib1.dll

    It's been broken since unity 3 and apparently they never plan on fixing it.
     
  2. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    Did you open a bug report back in 2009?

    If so, give me the ticket number, and I can check on the status for you if you don't know how.

    You can't expect UT to know about every bug in their editor. They is why they made the Bug Reporter tool.
     
  3. Gold_Rush

    Gold_Rush

    Joined:
    Jan 10, 2018
    Posts:
    64
    Who know is GZIPStream (DeflateStream) now worked fine?