c# - Unzip password protected file in SSIS using Ionic.Zip dll -
i got requirement unzip file contains password protected text files in zip file.which have done in ssis package..
i have googled , download dll called ionic.zip used in script task.
i have used below code using c# in script task..
using ionic.zip; public void main() { dts.taskresult = (int)scriptresults.success; start obj= new start(); obj.decrypt(); } public class start { public void decrypt() { string sfilepath ="e:\\shekar\\cif_files\\usage.zip"; zipfile filetoextract = new zipfile(sfilepath); filetoextract.password = "ftp122"; filetoextract.extractall("e:\\shekar\\cif_files"); } }
but getting exception msg below
i had google lot. can't find correct solution. 1 prove me answer
take @ below. give idea of how it's being used in c# environment. remember check different solutions:
Comments
Post a Comment