Hi! I have a working code of ziping a file before upload to the database:
FileStream myCompressedFile;
string strName = Path.GetFileName(txtFileContents.PostedFile.FileName);
myCompressedFile = File.Create(Server.MapPath(Path.ChangeExtension(strName, "gz" Go to the complete details ...