Solved

upload the files

Posted on 2009-05-12
1
154 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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:…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

20 Experts available now in Live!

Get 1:1 Help Now