Welcome to the Xceed Community | Help
Community Search  
More Search Options

delete partially created zip file in silverlight

Sort Posts: Previous Next
  •  11-18-2009, 11:52 PM Post no. 24916

    delete partially created zip file in silverlight

    Hi,

    We are evaluating to use the xceed silverlight zipwriter to zip the files in our silverlight application.Is there is any way/API's to revert/delete the zip file created in case we hit upon some exception in between the process of zipping. This way we don't end up creating partial/invalid zip  files.

    Thanks

    Sandeep

  •  06-07-2010, 11:05 AM Post no. 27097 in reply to 24916

    Re: delete partially created zip file in silverlight

    There is no such API in the component.

    The ZipWriter takes a Stream object created by you as its output store. As such, ZipWriter has no way of knowing what the Stream's true physical entity is. Since you create the Stream object prior to giving it to ZipWriter, refer to the documentation of the framework or library that you're using to see if there's a way to delete the data.

    If you're using a Stream created by Silverlight's FileInfo class, usually through a OpenFileDialog, you can delete it with FileInfo.Delete() method.

    Documentation:

    FileInfo.Delete

    OpenFileDialog.File

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.