Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Using GZipStream (System.IO.Compression) in Unity3d

Discussion in 'Scripting' started by googler, Feb 21, 2013.

  1. googler

    googler

    Joined:
    Mar 13, 2012
    Posts:
    14
    Hello. I'm trying to use GZipStream in Unity3d. I've create project, where I'm using GZipStream (VS 2010, project .net version 3.5, Unity 3.5.6), compile as library, copy to Assets/ExternalLibraries. Everything works, but when GZipStream is ctreating, exception occurs.

    System.DllNotFoundException: MonoPosixHelper
    at (wrapper managed-to-native) System.IO.Compression.DeflateStream:CreateZStream (System.IO.Compression.CompressionMode,bool,System.IO.Compression.DeflateStream/UnmanagedReadOrWrite,intptr)
    at System.IO.Compression.DeflateStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen, Boolean gzip) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.Compression.DeflateStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode,bool,bool)
    at System.IO.Compression.GZipStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen) [0x00000] in <filename unknown>:0
    at System.IO.Compression.GZipStream..ctor (System.IO.Stream compressedStream, CompressionMode mode) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.IO.Compression.GZipStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode)
    at ...
     
  2. superrobert

    superrobert

    Joined:
    Nov 21, 2013
    Posts:
    1
    I have the same issue, do NOT know why
     
  3. SpiralConDave

    SpiralConDave

    Joined:
    Dec 29, 2014
    Posts:
    37
    Nov 24 2015 Problem resurfaced