473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

zip / unzip uploaded files seamlessly

I am developing a website which allows a user to upload documents (MS Word,
PDF, etc) to a folder located beneath the website root. This works fine.
However, for storage space and security reasons, I would like to have the
process compress the file with encryption prior to writing it to the folder.
Perhaps the filename could be the same as the original, but with an
additional .zip extention. For example: sales2004.xls.zip. When the user
clicks on a link to download the file, I would like to have them download an
uncompressed version of the file without the zip extension, so it is
transparent from the user's perspective.
Are there any free libraries to compress / uncompress the pkzip format with
encryption?
Would the best approach for making this a seamless operation for users be to
program around the file stream?
Any general advice or alternative implementations from someone who has done
something similar before?
Nov 19 '05 #1
2 1553
If I was you I'd first try using the J# zip classes:
http://msdn.microsoft.com/msdnmag/is...n/default.aspx

Or I've heard of people having success with this code:
http://www.icsharpcode.net/Ope*nSour.../Default.as*px

Or you could consider calling a command line utility like this:
http://www.i386.info/software/*zip23xn.zip

Or you could consider a 3rd party component such as this:
http://www.xceedsoft.com/products/zipnet

Perhaps this free PDF code will also be of use to you:
http://www.ujihara.jp/iTextdotNET/en/index.html

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"bradley" <so*****@microsoft.com> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
I am developing a website which allows a user to upload documents (MS Word,
PDF, etc) to a folder located beneath the website root. This works fine.
However, for storage space and security reasons, I would like to have the
process compress the file with encryption prior to writing it to the
folder.
Perhaps the filename could be the same as the original, but with an
additional .zip extention. For example: sales2004.xls.zip. When the user
clicks on a link to download the file, I would like to have them download
an
uncompressed version of the file without the zip extension, so it is
transparent from the user's perspective.
Are there any free libraries to compress / uncompress the pkzip format
with
encryption?
Would the best approach for making this a seamless operation for users be
to
program around the file stream?
Any general advice or alternative implementations from someone who has
done
something similar before?

Nov 19 '05 #2
What you seem to need is a component that can zip/unzip with support
for the latest Zip format, which offers AES strong encryption. There
are, to my knowledge, no free libraries that support the latest Zip
format. That is asking a lot from a free library.

On Tue, 7 Jun 2005 11:42:41 -0400, "bradley" <so*****@microsoft.com>
wrote:
I am developing a website which allows a user to upload documents (MS Word,
PDF, etc) to a folder located beneath the website root. This works fine.
However, for storage space and security reasons, I would like to have the
process compress the file with encryption prior to writing it to the folder.
Perhaps the filename could be the same as the original, but with an
additional .zip extention. For example: sales2004.xls.zip. When the user
clicks on a link to download the file, I would like to have them download an
uncompressed version of the file without the zip extension, so it is
transparent from the user's perspective.
Are there any free libraries to compress / uncompress the pkzip format with
encryption?
Would the best approach for making this a seamless operation for users be to
program around the file stream?
Any general advice or alternative implementations from someone who has done
something similar before?


--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com

High-quality ActiveX and .NET libraries and controls

Email: xL*******@xceedsoft.com (remove the first 'x')
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Mc | last post by:
Can anyone please tell me how I can play mpg (or avi it doesn't matter) files in VB and also how to play two different mpg files one after the other seamlessly so you can't see the join? I want...
7
by: Chris | last post by:
Hi Where can I find info on unzipping file with VB.NET. I need to unzip a winzip file with my application Thanks
1
by: johnnyh | last post by:
I am currently using ASP.Net / C# to partially upload the first 100K of a CSV file to programattically extract the header information for field mapping against our database and for a test sample of...
2
by: Jim Andersen | last post by:
I am going to build a webapp. Our users are not allowed to download certain files, so I need to show files in a directory (.doc, .ppt, ???) and the user can then convert them to PDF and download...
4
by: DataSmash | last post by:
I need to unzip all zip file(s) in the current directory into their own subdirectories. The zip file name(s) always start with the string "usa" and end with ".zip". The code below will make the...
3
by: sdoty044 | last post by:
I am a true n00b... and I just using Python to complete some very small uneventful task, but need help with one last thing. Basically, this I what I am trying to do. make a temp directory...
1
by: sudhivns | last post by:
Looking for Zip/Unzip handling code. Unzip feature should extract the files including the absolute path. Eg: Input data.zip contains 1. folder IMP 2. some *.txt files. On Unzip, i choose...
5
by: =?Utf-8?B?anVsaW8=?= | last post by:
Hi, I write a program to unzip a Tar file generated on a Unix environment file using SharpZipLib, but returns a error "Header checksum is invalid" when execute the program. This error appears...
1
by: olddocks | last post by:
I want to upload a zip file and then extract/unzip it. I am accomplishing this with php exec command. I am calling unzip from php exec command within a php script and it is not extracting files. why?...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.