- Home /
System.IO.Compression not working in JS?
I'm using JS, and my code goes as follows:
import System.IO;
import System.IO.Compression;
<...>
private var archive : ZipArchive;
<...>
The problem is that just defining the archive variable sets off "The name 'ZipArchive' does not denote a valid type ('not found')." I've spent quite a while using C# rather than JS, but I think I'm doing the basics right... is there something preventing System.IO.Compression working that I've missed?
This is in Unity 4.1.5f1.
Edit: For reference, the MSDN reference of System.IO.Compression
Edit 2: I'm including System.IO AND IO.Compression because the script also requires the streamreader, which is in IO. I showed it here in case it's what's causing this problem - I wouldn't know if it was.
Answer by Landern · Jun 09, 2014 at 07:06 PM
Because its not supported, the it i'm referring to ZipArchive class:
Drat. Thanks for the answer - and for linking to that list.
Your answer
![](https://koobas.hobune.stream/wayback/20220613151200im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Setting Scroll View Width GUILayout 1 Answer
What's the best way to implement file compression? 9 Answers
Can someone help me fix my Javascript for Flickering Light? 6 Answers
What ZLIB/GZIP/etc compression library I can use with latest Unity for iOS versions? 0 Answers
Manage zip with unity 1 Answer