Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20105 |

    Hello – I am testing the RealTimeZipSample app currently and added the following lines:

     

    Dim fs As New FileStream(“C:\temp\tmpZip.zip”, FileMode.OpenOrCreate)

    compressedMemoryStream.WriteTo(fs)

    fs.close

    The zip file is created successfully but when unzipped with WinRAR two warnings are thrown (“archive is corrupt”) even though there is only one file in the archive. The decompressed file is actually ok (seemingly) but I want to know why the archive is corrupt and how to fix this.

     Cheers,

    Thomas

    Imported from legacy forums. Posted by Thomas (had 2051 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Thomas,

      this is unfortunately a know issue with WinRar. To be more technical, it does not support a compressed item with a 0 byte compressed and uncompressed size in the local header. 

    This is by design with Real-Time Zip since we never know at first how much data will be compressed in each item. We use the data descriptor header (located at the end of the compressed data) to store this information, which is completely ligit and documented in the PKWare Zip specification.

    Imported from legacy forums. Posted by Chris [Xceed] (had 2677 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.