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

Extracting the Zip file throws the File Corrupt Error

5 Answers 243 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
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");
                                 
                            }
                        }
                    }


 		    


5 Answers, 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 >>
Roman Jay
Top achievements
Rank 1
Iron
commented on 21 Oct 2021, 02:28 AM

Can you share how you solved this? 
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

0
David
Top achievements
Rank 1
answered on 25 Nov 2013, 09:34 AM

In this conditions, you can take help of third party tool to resolve your all problem without any error. Browse the given link- http://exchangerecovery.hubpages.com/hub/zipfilerecovery

The blog provided the helpful information about ZIP files corruption and way to tackle them.

0
Naitik
Top achievements
Rank 1
answered on 10 Dec 2013, 12:39 PM
Try WinRAR to fix corrupt ZIP file. It supports a built-in repair feature to repair corrupt RAR as well as ZIP files.
  1. Launch WinRAR program on your system
  2. Click File tab > Open archive (Ctrl+O)
  3. Select corrupt ZIP archive
  4. Click on Tools tab > Repair archive (Alt+R)
  5. Select archive type and a location for new ZIP file.
  6. Click on OK.
Within a few seconds the file will be repaired and recreated at the location defined earlier (in the 5th step).
If this doesn't help you, you may try a 3rd party ZIP recovery tool. I can recommend you to check demo version of SysInfoTools ZIP Recovery software. It will fix corruption and repair your ZIP file.
Go to sysinfotools.com to know more about this software.
Thanks.
0
Jack
Top achievements
Rank 1
answered on 03 Jan 2018, 09:48 AM
If you have a corrupt ZIP file and you want to repair it without using any 3rd party tool, you should use the WinRar application. It has a built-in repair feature which you can use here. Also, there's a Data Extraction feature in the WinRar application that can help you extract data from the corrupt ZIP file. Refer to this article for complete information - Repair ZIP File Manually – Restore ZIP File Content
0
Deepak
Top achievements
Rank 1
Iron
answered on 05 May 2021, 11:06 AM

Hello,

You can use WinRAR to repair the zip file. If this does not work then you can go with third-party software to repair the zip file. If you want to know more about this problem and its solution, go to https://www.syscurve.com/
Tags
General Discussions
Asked by
Kyle
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
David
Top achievements
Rank 1
Naitik
Top achievements
Rank 1
Jack
Top achievements
Rank 1
Deepak
Top achievements
Rank 1
Iron
Share this question
or