2013-06-04 1 views
0

Monodroid를 사용하여 Android에서 파일의 압축을 풀고 싶습니다. Property NextEntry로 ZipEntry를 얻을 수는 있지만 지금은이 ZipEntry를 간단한 스트림으로 변환해야합니다.ZipEntry to monodroid

편집 :

내 코드의 일부

using System; 
using System.IO; 
using Java.Util.Zip; 
using File = System.IO.File; 

    public void ExtractFile(Stream ZipFile, Action<String, Stream> WriteFile) 
     { 
      ZipInputStream zis; 
      try 
      { 
       zis = new ZipInputStream(ZipFile); 
       ZipEntry entry; 
       byte[] buffer = new byte[1024]; 
       int count; 

       while ((entry = zis.NextEntry) != null) 
       { 
        // HERE I need to call my WriteFile action with a stream 
       } 
... 

감사

답변

0

당신이 Ionic.Zip를 사용하는 경우, 당신은 쉽게 얻을 수 있습니다 : zipentry.InputStream

+0

안녕하세요 , 나는 InputStream 속성이 없기 때문에 Ionic.Zip을 사용하지 않고있다. – Podelo

+0

그렇다면 무엇을 사용하고 있는가? – Roosevelt

+0

몇 가지 코드를 추가했습니다. – Podelo