title: Unable to open zip file, codeigniter
body: <p>I tried to add my pictures, which uploaded by users, into a zip file. so, that user can download this file.
  The problem is when I download this zip file, it contains lots of filename (as I expect). But when I open this zip, it show me error
  “C:....ata\Local\Temp\my_photo.zip: Unexpected end of archive”</p>
  
  <p>Each picture has size but CRC32 is 00000000
  Here is the code:</p>
  
  <pre><code> $this-&gt;load-&gt;library('zip');
   $this-&gt;zip-&gt;clear_data();
   foreach ($row as $ar){
      $file_relative_path = $ar-&gt;filepath;               
       if(file_exists($file_relative_path)){
             $this-&gt;zip-&gt;add_data($this-&gt;_getFileName($file_relative_path),file_get_contents($file_relative_path));
       }
  }
  $this-&gt;zip-&gt;download('my_photo.zip');  
  </code></pre>