This is a migrated thread and some comments may be shown as answers.

Extracting the Zip file throws the File Corrupt Error

1 Answer 4010 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kyle
Top achievements
Rank 1
Kyle asked on 16 Jul 2013, 05:01 PM
I am zipping the file using the Telerik.Windows.Zip. When i extract the zip file manually using winzip, it throws the below error

!   C:\Users\Public\Music\Sample Music\New folder\3.zip: CRC failed in 3.zip.xml. The file is corrupt.

It does work sometime.

using (Stream stream = viewModel.OpenStream())
                    {
                        if (stream != null)
                        {
                            using (ZipPackage zipPackage = ZipPackage.Create(stream))
                            {
                                zipPackage.AddStream(new MemoryStream(GetXmlData(tutorial)),viewModel.Filename+".xml");
                                 
                            }
                        }
                    }


 		    


sharon
Top achievements
Rank 1
commented on 07 Feb 2022, 10:36 AM | edited

This info is very helpful for me 

1 Answer, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 19 Jul 2013, 02:35 PM
Hello Kyle,

Unfortunately I wasn't able to reproduce this issue locally and therefore I wanted to ask you if you can send over a sample solution where we can try to reproduce this issue. This will allow us to further investigate what might be causing it.

Thank you in advance for your cooperation.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Dimitar
Telerik team
commented on 21 Oct 2021, 10:11 AM

Hi Roman, 

This thread is really old and the ZipPackage class is obsoleted now. If you have a similar issue I would suggest opening a new thread and providing a detailed description. 

Regards,

Dimitar

Tags
General Discussions
Asked by
Kyle
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or