Using a Package to zip files C# Visual Studion 2010

Posted on 2013-09-27
Medium Priority
Last Modified: 2013-10-10
Does anybody have sample code they could share that shows how to use a Package on IIS 7 that will package .pdf, .docx and .xlsx files to a .zip file on the webserver?

I have the enviornment set up and am coding but running into some issues setting the mime type.

Bill Fennell
Question by:fenbi01
  • 2
  • 2
LVL 75

Accepted Solution

käµfm³d   👽 earned 2000 total points
ID: 39528722
Can you explain what you mean by, "some issues setting the mime type?"

I have used DotNetZip. It is available through NuGet, and it has a relatively simple API. There are examples available for its usage.

Author Comment

ID: 39548142
I have found a solution but thank your for feedback. I am using DotNetZibLib. It works great.

Author Comment

ID: 39548204
I've requested that this question be closed as follows:

Accepted answer: 0 points for fenbi01's comment #a39548142

for the following reason:

The solution was 2 use a open source 3rd party library.
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39548205
Forgive me, but it looks to me that you selected the exact same library that I suggested. Can you elaborate?

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
This collection of functions covers all the normal rounding methods of just about any numeric value.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question