Forum


HomeHomePremiumPremiumDevelopmentDevelopmentZip and download Zip and download
Previous
 
Next
New Post
4/4/2014 5:36 PM
 

I finally got the first part of. My module converted. Yea. Ended up staying with DAL, but converting to C#. Never got vb to work, always a moldule load exception, and DAL2 either never retrieved anything, or wouldn't map it.

Now my newest question. I need it have my module write several files to the server file system, then zip then and some others together, then download this to the requester. Any examples of something like that?

eventually I'll need to reverse the process, up load a zip file, unzip it, and parse the files for data to load in the database.


 
New Post
4/5/2014 4:10 AM
 

Keith,

DNN already has an unzip function - FileManager.Instance.UnzipFile().  They are using the ICSharpCode.SharpZipLib.Zip library which ships with DNN.  You can look at the core code in DotNetNuke.Services.FileSystem FileManger.cs if you want to write the code yourself.

There is a zip function in DotNetNuke.Common.Utilities.FileSystemUtils.AddToZip()

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentZip and download Zip and download



Try FREE
30 days money back guaranteed