Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0
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,
Smile | :)
Posted 27-Apr-11 19:52pm
Comments
Sandeep Mewara at 28-Apr-11 0:54am
   
You do not convert. You zip it!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Have a look at these:
Zip Compression C# Examples[^]
GZipStream Class[^]

If needed, look here[^] for more.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 350
1 Sergey Alexandrovich Kryukov 133
2 Sebastiaan Meijerink 105
3 Rana Waqas 100
4 Abhinav S 95
0 Sergey Alexandrovich Kryukov 6,558
1 OriginalGriff 6,268
2 Peter Leow 2,534
3 Abhinav S 2,344
4 Maciej Los 2,297


Advertise | Privacy | Mobile
Web02 | 2.8.150414.1 | Last Updated 28 Apr 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100