C# SharpZipLib Can't read stream when trying to uncompress zip in Unity3D -


I have ICSHRPCD. Using the SRPZLIB to open and open a file from the Web, whatever I have to do is uncompressed byte array however I get the "Invalid Operation exception: Unable to read from this stream" error. I am working in Unity 3D as a Web Player with a target in C #. This is apparently readable, so I'm not sure of this problem. Here is my code and any help would be greatly appreciated. (ICSHRCPCD) SharpZipLib.Zip.ZipInputStream zip = New ICSHRcode using (using > Bierrebrand BR = new binaryreader (s)) using

  (memorystream s = new memorystream (bytes)) . STEPZIP LIB. Zip ZIP InputStream (s)) {Byte [] bytescomplete = new byte [32768]; While {true} {debug.log ("can read:" + zip. Converged); Int read = zip.Read (byte, full, 0, byte lamps); If break (read & lt; = 0); Zip.Write (byte, 0, read); }}}}}  

It is not clear how you made your stream S , but you may need it to roll back the status of your stream before reading it:

  s.Seek (0, System. IO.SeekOrigin.Begin);  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -