Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,


Please help me!
i alredy created an application to take backup of Databses using C#.
can anyone help me to convert this file(.bak) to a rar file??


Thanx in Advance!!!!


Regards,
:)
Posted
Comments
Sandeep Mewara 28-Apr-11 0:54am    
You do not convert. You zip it!

If you really want to RAR it instead of compressing with any other algorithm, you can use Open Source cross-platform 7-Zip.
See the list of supported formats and features:
http://en.wikipedia.org/wiki/7zip[^].
Original Web site:
http://www.7-zip.org/[^].

The only license restriction named is the unRAR restriction, so check the Web site to see what would be your limitation. By that reason, consider using some other format, such as original 7z (http://en.wikipedia.org/wiki/7z[^]).

—SA
 
Share this answer
 
Have a look at these:
Zip Compression C# Examples[^]
GZipStream Class[^]

If needed, look here[^] for more.
 
Share this answer
 
You can certainly zip them[^].

If you scroll down in the link I've given, you can see a comment on how a user has integrated winrar as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900