SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Empty zip file on other machine

Last post 03-11-2008 2:14 PM by pragneshmpatel. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 03-06-2008 3:27 PM

    Empty zip file on other machine

    hi,

     i am using ZipoutputStream to create a zip file.

    Its creating zip file correctly. & extracting & opening in my machine.

    but when i sent that file to other machine in network, it is not opening. it shows the size of the file & other thing. but when we open the file

    it is empty.

    Is there any issue on the file path??? its creating whole path of the actual file system in the zip. ie. c:\test\zipfiles\ then the file.

    Any idea what is the problem

  • 03-08-2008 10:09 AM In reply to

    Re: Empty zip file on other machine

    Hi,

    paths should not include windows device names and absolute paths.  They can exist in zip archives but some programs are unable handle these non-standard paths.

    Paths are supposedt be relative paths with unix '/' separators not windows '\'  style.

    What are you trying to extract the files with on this other network machine?

     

  • 03-10-2008 10:02 AM In reply to

    • andre
    • Not Ranked
    • Joined on 01-23-2008
    • Posts 3

    Re: Empty zip file on other machine

    Hi,

    I've the same problem now.
    On my machine (WinAce) anything is fine but on any other machine in the network it do not work (WinRAR or Windows-Only Zip).
    I understand the problem with the slash but how to solve this to make it more compatible?
    Is there a flag for when zipping?

    Thanks,

    Andre

  • 03-10-2008 12:35 PM In reply to

    Re: Empty zip file on other machine

    Thanks for the reply.

    i am trying to use windows compressed folder on the other machine.

    also, its not working with windows compressed folder on my machine.

    Is there any way to create zip on the root, without any path??

    Regards,

    Pragnesh 

     

     

  • 03-11-2008 12:04 PM In reply to

    • andre
    • Not Ranked
    • Joined on 01-23-2008
    • Posts 3

    Re: Empty zip file on other machine

    I think I found a way to solve this problem.

    Please have a look at the manual and search for CleanName and ZipNameTransform Class...

    Regards,

    Andre

  • 03-11-2008 1:01 PM In reply to

    Re: Empty zip file on other machine

     

    hi,

    help file is not opening on my machine.

    can you share code snippet??

    thanks

    Pragnesh 

     

  • 03-11-2008 1:46 PM In reply to

    • andre
    • Not Ranked
    • Joined on 01-23-2008
    • Posts 3

    Re: Empty zip file on other machine

  • 03-11-2008 2:14 PM In reply to

    Re: Empty zip file on other machine

    thanks

    It works fine.

    I used following code.

    zpFile.NameTransform = new ZipNameTransform(Server.MapPath("file"));

    zpFile.BeginUpdate();

    zpFile.Add(fileName.ToString());

    zpFile.CommitUpdate();

     

     

Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.