I have created an application which compress & convert a file in .rar or .zip format.But it can't be open and give error that the file is damaged!!! string filetocompress = txtSourceFilePath.Text.Substring(txtSourceFilePath.Text.LastIndexOf("\\")+1); MessageBox.Show(filetocompress); FileStream sourcefile = File.Create(txtSourceFilePath.Text); FileStream destination = File.Create(txtTargetFilePath.Text + filetocompress + ".gz"); byte[] buffer = new byte[sourcefile.Length]; sourcefile.Read(buffer, 0, buffer.Length); using (GZipStream output = new GZipStream(destination, CompressionMode.Compress)) { Console.WriteLine("Compressing {0} to {1}.", sourcefile.Name, destination.Name, false); output.Write(buffer, 0, buffer.Length); } sourcefile.Close(); destination.Close();

Member Avatar
Member Avatar
+0 forum 1

Hello Friends I am VB.NET Programmer and currently working on a project where i have to copy the rar/zip file from any folder. While pasting it, it should extract the rar/zip contents automatically. I am done with my extracting part but Here are some problems i am facing Problem 1 : How should i detect that a rar/zip file is copied by the system ? Problem 2 : How to track the file in which it has to be paste ? All operation will be done from system context menu. Kindly Help me Thank You

Member Avatar
Member Avatar
+0 forum 3

Hi friends, What is RAR file in j2ee. Please give me directions to creatre RAR files. Please help me. Thnaks & Regards Jasonmark

Member Avatar
Member Avatar
-1 forum 1

Hello fellows, I have some files which consists a setup program worth 11.1 gb in size. I want to burn these files into multiple dvds. For example, 3 dvds having size of 4.7gb OR 2 dvds one can be 8.5gb in size and another one can be 4.7gb in size. Moreover, i want to burn these in continuous manner. So that during installation when dvd1 is finished, the pc will ask for next dvd in order to continue. I tried using winrar to create the archive in 4.3gb sizes but in this case, during installation, i will have to first …

Member Avatar
Member Avatar
+0 forum 3

The End.