c# - Zipping many files and upload them to FTP -


i have requirement of uploading several image files ftp.

the main goal achieve here performance, speed.

my approach here to, zip files @ client end, , ftp upload them , un-archive them on server.

is there better approach??

and best way zip 1000 images? should use .net inbuild mechanism or external library?

note : have vs 2012 development environment this.

zip on client end , ftp , unzip them on server best approach in term of performance , speed. sending 1000+ files server not ideal solution.

better use open source libraries zip files. may use ionic zip. can zip , unzip files using exposed api.

code sample

zipping files

 using (zipfile zip = new zipfile())  {      // add map file "images" directory in zip archive      zip.addfile("c:\\images\\personal\\7440-n49th.png", "images");       zip.save("myzipfile.zip");  } 

unzipping files

    public void extractzipfile(string fullzipfilename, string extractpath)     {          using (zipfile zip = zipfile.read(fullzipfilename))         {             //extract zip file             zip.extractall(extractpath);         };     } 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -