Downloading Multiple Files as a Zip File Using GridView and SharpZipLib


Downloading files becomes a painful procedure if you have to select each individual file manually to perform the download. In this article we are going to select multiple files and download all of them as a single zip file.

SharpZipLib is a free .NET API which is used to perform zipping operations. We will use SharpZipLib to perform the file zip.

Read full article by AzamSharp  : here

Hope this will help !!!

Jay Ganesh

Advertisements
  • Uncategorized

5 thoughts on “Downloading Multiple Files as a Zip File Using GridView and SharpZipLib

  1. We store all of our collateral on a separate server from our website and want to allow people to be able to download multiple PDFs by selecting checkboxes in a gridview, but the PDFs exist on a different server. Please advise the best way to handle something like this.

    Jason

    1. Hi Jason,

      If the remote web is applied to the public or internal. You can refer something like this:

      http://www.xx.xx.xx/Files/xxx.pdf & get the files & prepare zip file. it will be very slow in terms of performance.

      To access a remote file is hard to do. I guess.

  2. im getting error Error:: type or namespace name ‘var’ could not be found (are you missing a using directive or an assembly reference?).
    why? i m using .net framework 2.0..

  3. i m getting the error Error:: type or namespace name ‘var’ could not be found (are you missing a using directive or an assembly reference?).
    why? i m using .net framework 2.0..

  4. im getting error: The type or namespace name ‘ZipOutputStream’ could not be found (are you missing a using directive or an assembly reference?)
    why ??????

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s