Download Multiple Files From FTP to Client System

4 posts, 0 answers
  1. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 27 Nov 2009 Link to this post

    Hi.

    can any one help me.

    how to download multiple Files from FTP To Client System with a single Request.

    I did code to Download Multiple Files From FTP.it's Downloading files and  storeing files in Server System not in Client System.

    I can't able to Create Folder in Client System and Downloading Files .

    And Also

    I want to know how to create GZipStream file and how to add Multiple Files To Zip Folder

    and Download That Zip File.I also tried this,but i am able to add only one file to Zip

    Can Any one help me how to do this.Please........

    Thank you

    Suresh K
  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 27 Nov 2009 Link to this post

    If you're looking for a way to create a zip of multiple files on the fly, download ICSharpCode.SharpZipLib:

    http://www.icsharpcode.net/OpenSource/SharpZipLib/

    Then it's as simple as this (in VB):

          Dim z As New ICSharpCode.SharpZipLib.Zip.FastZip  
          z.CreateZip(Response.OutputStream, _  
                      Server.MapPath("~/YourDirectoryName/"), _  
                      recurse:=True, _  
                      fileFilter:=Nothing, _  
                      directoryFilter:=Nothing)  
     

    Two lines of code will zip everything in the selected directory (notice that the fileFilter and directoryFilter are set to nothing), and all sub-directories (recurse = true), and automatically send the file to the OutputStream.  Hope that helps,

    Shaun.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 30 Nov 2009 Link to this post

    hi.
    Thank you for your Reply.
    You Did great job for me.
    Thank you So much...

    Suresh K
  5. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 02 Dec 2009 Link to this post

    hi.

    when i download the Files i am getting Error Like This.

    Cannot open file: it does not appear to be a valid archive.
    If you downloaded this file, try downloading the file again.


    can you tell me how to Solve This.

    Thank You
    Suresh K.
Back to Top