Click here to Skip to main content
15,868,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For example in Svn there is a file test.txt that contains 'Welcome'. Instead of exporting the file , I want data inside the file , that is 'Welcome'. Because i want to save it in Sql Server as byte.Thanks In advance.
Posted
Comments
Mehdi Gholam 12-Jan-15 1:38am    
Just check out whatever you want and read the file normally.
tnkarthi 12-Jan-15 1:53am    
thank for your reply. i got solution. Using SharpSvn.SvnClient client = new SvnClient();
client.Authentication.DefaultCredentials = new NetworkCredential("****", "**************");
SharpSvn.SvnUriTarget folderTarget = new SvnUriTarget(svnpath);
var stream = new MemoryStream();
if (client.Write(folderTarget, stream))
{
stream.Position = 0;
using (var reader = new StreamReader(stream))
{
string contents = reader.ReadToEnd();
}
}

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