473,796 Members | 2,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Zipping-Unzipping files in ASP.NET

2 New Member
Hello everyone,

I want to zip all the files in a folder in an web application, can you suggest me, so as to how can this be done.

I did refer to an article posted in Code Project, but its throws an error as:

Server Error in '/zipping_module' Application.
--------------------------------------------------------------------------------

COM object with CLSID {..} is either not valid or not registered.

Plz help.
Feb 26 '07 #1
2 1213
RedSon
5,000 Recognized Expert Expert
Can you post a link to the codeproject project that you are referring to? It would also be nice if you could describe how your application works, and what you want it to do.
Feb 26 '07 #2
puneetshadija
2 New Member
thanks for replying sir, here is the link, that I reffered.
http://www.codeproject .com/csharp/compresswithwin shellapics.asp? msg=1910065
Feb 27 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1605
by: gaurav | last post by:
is there any zipping utility offered in visual c#.NET, as it is in Java (java.util.zip). please give your due concern.
9
5515
by: ReidarT | last post by:
How can I zip (compress) a file in vs2005 with windows own zip-program? reidarT
7
1575
by: Dylan Parry | last post by:
Hi folks, I've got a page that outputs XML, but in some cases the size of the page is several MB. So I figured the best way to deal with it is to ZIP the contents of the page and send that to the browser along with the appropriate headers. So my question... Is there a way that I can create a ZIP file containing an XML document based on the value of a string/XmlDocument object? If not, is there a way of temporarily writing out an...
2
4119
by: johnny | last post by:
I have the following code. What I need is to zip the file (c:\web\upload\someFile) to d:\web\someFile.zip. $cmd = 'c:\zip\zip.exe '. $movedFile. ' '. $finalFile; exec( $cmd, $cmd_output ); File is being uploaded by the apache server, but it's not being zipped. My guess "\", escaping, is causing problem in windows path. Do I also have to escape the $movedFile content? Forexample $movedFile= "c:\web\upload\someFile".
4
1413
by: rcoco | last post by:
I've Zipped the file and tried to send it but I made a mistake wrote a wrong server address and now I want to rename. When I try to zip I get the outlook express with the zip file attached to it. What could I do. Do I really have to delete the whole folder? Thanks
1
1510
by: durumdara | last post by:
Hi! As I experienced in the year 2006, the Python's zip module is not unicode-safe. With the hungarian filenames I got wrong result. I need to convert iso-8859-2 to cp852 chset to get good result. As I see, this module is "a command line tool" imported as extension. Now I search for something that can handle the characters good, or handle the unicode filenames.
1
4797
by: jschmidt | last post by:
I am wondering if there is a way to zip a (one) file using a batch script. I have an access database that needs to be zipped on a regular basis because many people download this file from a website. Winzip is not an option. I tried to make a simple batch script that just moves the database into a compressed(zipped) folder and the .zip file bacame corrupt. Any help would be appreciated. Thanks!
1
1052
by: ruchi garg | last post by:
Hi All, I am trying to zip a folder in .NET using J#. I want name of the output file in specific Date Format. But when I am passing the string containing date to FileOutputStream it gives following error: An unhandled exception of type 'System.NotSupportedException' occurred in mscorlib.dll Additional information: The given path's format is not supported. Can someone help me?
6
2844
by: aru123 | last post by:
i have created an application to zip a folder and file. Now i want to create an apllication to zip a file and folder with password protection. plz any one can give me code or sample application or reference in vb.net 2005
2
1085
by: Brian Vanderburg II | last post by:
I've installed Python 2.5 on MSW and it works. I'm preparing it to run from a thumb drive so I can run applications by dropping them onto the python.exe or from command line/etc. It works but the size is quite large. I've compressed most of the executables with UPX even the dlls under site-packages, but is there a way I could compress the top-level 'lib' directory into a python.zip instead so save some space, and do I need the 'test'...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.