Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Dynamically making zip files?

Dynamically making zip files?

Scheduled Pinned Locked Moved ASP.NET
tutorialdatabasequestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Muntyness
    wrote on last edited by
    #1

    Is there a way (or even better an article) to dynamically make zip files in ASP? What I need to do is return a zip file containing a couple of files when the user clicks on a link. Which zip files depend on which links the user clicks on. So for example: Link A returns rar.txt, genericfile.txt. Link B returns omg.txt, genericfile.txt. Link C returns lol.txt, genericfile.txt. Link D returns wassup.sys, genericDLL.dll, readme.txt. So as you can see in my example, Links A-C return a generic file and file specific to the link, while Link D returns a generic dll a readme file and a link specific file. Now all the files are listed in a database, and I already know how to get the filepath from the database. So all I really need is asp code that will make a zip file from passed in parameters. - Munty -- modified at 6:13 Friday 9th March, 2007

    S B 3 Replies Last reply
    0
    • M Muntyness

      Is there a way (or even better an article) to dynamically make zip files in ASP? What I need to do is return a zip file containing a couple of files when the user clicks on a link. Which zip files depend on which links the user clicks on. So for example: Link A returns rar.txt, genericfile.txt. Link B returns omg.txt, genericfile.txt. Link C returns lol.txt, genericfile.txt. Link D returns wassup.sys, genericDLL.dll, readme.txt. So as you can see in my example, Links A-C return a generic file and file specific to the link, while Link D returns a generic dll a readme file and a link specific file. Now all the files are listed in a database, and I already know how to get the filepath from the database. So all I really need is asp code that will make a zip file from passed in parameters. - Munty -- modified at 6:13 Friday 9th March, 2007

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      What you want to do ? Add this file to zip or Unzip the files if the option is second then only you have to give address of zip file in the link rest of browser will take care for that

      Thanks and Regards Sandeep If you want something you never had, do something you have never done!

      1 Reply Last reply
      0
      • M Muntyness

        Is there a way (or even better an article) to dynamically make zip files in ASP? What I need to do is return a zip file containing a couple of files when the user clicks on a link. Which zip files depend on which links the user clicks on. So for example: Link A returns rar.txt, genericfile.txt. Link B returns omg.txt, genericfile.txt. Link C returns lol.txt, genericfile.txt. Link D returns wassup.sys, genericDLL.dll, readme.txt. So as you can see in my example, Links A-C return a generic file and file specific to the link, while Link D returns a generic dll a readme file and a link specific file. Now all the files are listed in a database, and I already know how to get the filepath from the database. So all I really need is asp code that will make a zip file from passed in parameters. - Munty -- modified at 6:13 Friday 9th March, 2007

        B Offline
        B Offline
        badgrs
        wrote on last edited by
        #3

        By ASP you do mean ASP.NET right? Have a look at the System.IO.Compression classes.

        1 Reply Last reply
        0
        • M Muntyness

          Is there a way (or even better an article) to dynamically make zip files in ASP? What I need to do is return a zip file containing a couple of files when the user clicks on a link. Which zip files depend on which links the user clicks on. So for example: Link A returns rar.txt, genericfile.txt. Link B returns omg.txt, genericfile.txt. Link C returns lol.txt, genericfile.txt. Link D returns wassup.sys, genericDLL.dll, readme.txt. So as you can see in my example, Links A-C return a generic file and file specific to the link, while Link D returns a generic dll a readme file and a link specific file. Now all the files are listed in a database, and I already know how to get the filepath from the database. So all I really need is asp code that will make a zip file from passed in parameters. - Munty -- modified at 6:13 Friday 9th March, 2007

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Take a look might be helpfull http://www.aspheute.com/english/20011115.asp[^]

          Thanks and Regards Sandeep If you want something you never had, do something you have never done!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups