Solved

upload the files

Posted on 2009-05-12
1
153 Views
Last Modified: 2013-11-07
Hi All,

I am implementing a functionality where I need to upload some log files on a remote FTP server. There are four log files (each can be upto 20MB in size).

I have successfully implemented the functionality to compress and upload log files to FTP server. I have used "System.IO.Compression.GZipStream" class to perform compression and it has helped me reduce the size of a single log file from 20MB to around 1.5MB.

However, as per the new requirement, I need to encrypt the log files as they contain sensitive information and their security can be compromised when FTP upload is taking place through the network. For being able to achieve this, I used "RijndaelManaged" class to encrypt the log files.

The problem is that encryption is further increasing the size of log files by a factor of around 30% (which increases the size of a 20MB log file to around 26MB). Bigger problem is that compression does not work on encrypted file as its size remains the same even after compressing.

I read a few articles on the web as well as MSDN where people have discussed problems like this. However, I have not been able to find a solution.

Please suggest how to go about it as it is very urgent.

Thanks in advance
0
Comment
Question by:KaranGupta
1 Comment
 
LVL 13

Accepted Solution

by:
iHadi earned 500 total points
ID: 24363174
Hi

try encrypting the file after compressing it.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now