locked
Creating a zip archive for user download from web server. RRS feed

  • Question

  • Hi guys,

    Is there a way to create a zip archive on the server (consisting of several documents for instance), and then have the user select a local drive to save it?

    I´m using vb.net and asp.net with sql server. I know how to save a single file, so I only need help with the zipping. I would prefer vb but I can handle c# as well.

    Thanks

    Monday, October 29, 2012 9:55 AM

Answers

  • the net library is exactly the same for VBnet and C#.  The interface is a little different so I often convert code between C# and VBnet for people.  The easy way of creating a zip file is to use a command line to make the file from Visual Studio by using the processing class.

    The link below is a code projet that appears to use this process

    http://www.codeproject.com/Questions/450505/create-zip-file-in-asp-net


    jdweng

    • Proposed as answer by Mike Feng Tuesday, October 30, 2012 10:24 AM
    • Marked as answer by Mike Feng Thursday, November 8, 2012 3:43 PM
    Monday, October 29, 2012 10:31 AM