473,398 Members | 2,404 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,398 software developers and data experts.

Write an encoded zip file

Is there a way to write out a file and cause it to be an encoded zip file
from an asp.net page?

At the moment, I am writing out a csv file that a user can download from my
site. But the problem is that the file will be clear text and I am going to
be putting in some personal information that should be private. I was
thinking of just creating a zip file that is password protected but I need
to automate that.

Is there a way to do this from asp.net or is there a better way to
accomplish what I am trying to do?

Thanks,

Tom
Mar 22 '07 #1
4 1059
"tshad" <t@home.comwrote in message
news:uI*************@TK2MSFTNGP02.phx.gbl...
Is there a way to do this from asp.net
I use this: http://www.chilkatsoft.com/zip-dotnet.asp
Mar 23 '07 #2
There's a free library over at: http://www.icsharpcode.com/

I haven't used it in a while though, I've also used the zip component from
www.componentone.com
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"tshad" <t@home.comwrote in message
news:uI*************@TK2MSFTNGP02.phx.gbl...
Is there a way to write out a file and cause it to be an encoded zip file
from an asp.net page?

At the moment, I am writing out a csv file that a user can download from
my site. But the problem is that the file will be clear text and I am
going to be putting in some personal information that should be private.
I was thinking of just creating a zip file that is password protected but
I need to automate that.

Is there a way to do this from asp.net or is there a better way to
accomplish what I am trying to do?

Thanks,

Tom

Mar 23 '07 #3
I've heard good things about this 3rd party component:
http://xceed.com/Zip_Net_Intro.html

You might also consider using the new .NET 3.0 System.IO.Packaging namespace
to compress with it's DRM encryption.
Here's more info on that:
http://msdn2.microsoft.com/en-us/lib...packaging.aspx
http://msdn2.microsoft.com/en-us/library/ms771554.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"tshad" <t@home.comwrote in message
news:uI*************@TK2MSFTNGP02.phx.gbl...
Is there a way to write out a file and cause it to be an encoded zip file
from an asp.net page?

At the moment, I am writing out a csv file that a user can download from
my site. But the problem is that the file will be clear text and I am
going to be putting in some personal information that should be private.
I was thinking of just creating a zip file that is password protected but
I need to automate that.

Is there a way to do this from asp.net or is there a better way to
accomplish what I am trying to do?

Thanks,

Tom
Mar 23 '07 #4
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netwrote in
message news:EA**********************************@microsof t.com...
I've heard good things about this 3rd party component:
http://xceed.com/Zip_Net_Intro.html
I was going to look at the ISharpCode component first. Not sure which is
better but I thought I would start there.
You might also consider using the new .NET 3.0 System.IO.Packaging
namespace to compress with it's DRM encryption.
Here's more info on that:
http://msdn2.microsoft.com/en-us/lib...packaging.aspx
http://msdn2.microsoft.com/en-us/library/ms771554.aspx
I am using asp.net 1.1 and it seems to be for 2.0 as the samples use VS
2005. I don't know if it would do what I want, however. Couldn't tell from
the docs.

Thanks,

Tom
>
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"tshad" <t@home.comwrote in message
news:uI*************@TK2MSFTNGP02.phx.gbl...
>Is there a way to write out a file and cause it to be an encoded zip file
from an asp.net page?

At the moment, I am writing out a csv file that a user can download from
my site. But the problem is that the file will be clear text and I am
going to be putting in some personal information that should be private.
I was thinking of just creating a zip file that is password protected but
I need to automate that.

Is there a way to do this from asp.net or is there a better way to
accomplish what I am trying to do?

Thanks,

Tom

Mar 23 '07 #5

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

Similar topics

1
by: burdeen | last post by:
i'm using fopen() to create an xml file... unfortunately I have utf-8 encoded data in my xmldom object which I'm trying to write to this xml file. It seems that fopen() only supports ANSI and...
9
by: msuk | last post by:
All, I have a well form block of XML that is stored in a C# string type and I just simply want to display it in the browser using Response.Write but when I try this I get the following error: ...
5
by: AC [MVP MCMS] | last post by:
Any pointers on how to (1) read a Base64 encoded string from a text file and (2) write it to a binary file? I have a ton of files that are being generated from a legacy system. Each file...
4
by: dinny | last post by:
I am getting an extra character at te beginning of the file, can someone please check if there is an error in my code? Dim fs As FileStream fs = New FileStream(Form1.REGFILE, FileMode.CreateNew,...
9
by: Thomas Podlesak | last post by:
I need a check, if a file is utf8 encoded. I only found the php-functions 'iconv' and 'recode'. But it seems it´s not possible to determine the encoding with them. Isn´t there any similar...
4
by: comp.lang.php | last post by:
I have a very simple XML file I created as a sample: I am trying to simply read it using tree-based XML functions in PHP which I know (sorry, don't know or quickly understand DOM though that...
3
by: Billy Smith | last post by:
I'm trying to write a little utility that will write some binary data to a file via a javascript and Windows Script Host under Windows XP. The only way to do this that I can find is to convert...
3
by: dmitrey | last post by:
hi all, what's the best way to write Python dictionary to a file? (and then read) There could be unicode field names and values encountered. Thank you in advance, D.
4
by: Samuel | last post by:
Hi I am trying to write to a string text encoded to utf8 as oppose to utf16 Since the data comes from an XML object (and I serialize it) I need to pass either StreamWriter or a StringWriter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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.