zlib integration

I need to access read io streams using zlib. What’s the best way of doing it? Does Unity have anything built in?

1 Answer

1

I’ve not tried it, but this looks promising: http://zlibnet.codeplex.com

This might also suit you? GZipStream Class (System.IO.Compression) | Microsoft Learn (be sure to be looking at Version 2.0 docs)

(Update) Ack. Check this out: What's the best way to implement file compression? - Questions & Answers - Unity Discussions

I'll check out that first one. It absolute has to be zlib to read a certain file format.

I had a similar need, but for gzip. My solution here: http://answers.unity3d.com/questions/175706/can-i-use-gzip-with-webplayer.html That DotNetZip stuff looks fairly comprehensive, maybe it will work for you.