Solved

upload the files

Posted on 2009-05-12
1
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

735 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