« Return to Thread: Downloading files from SVN

Re: Downloading files from SVN

by XMaNIaC :: Rate this Message:

Reply to Author | View in Thread

Thank you, it was very easy once I knew what to use. May I advice to include the 'svn cat' in the API doc of SVNWCClient? At least it gives some orientation to the end user.

Regards

On Mon, Aug 3, 2009 at 4:17 PM, Alexander Kitaev <Alexander.Kitaev@...> wrote:
Hello,

You may use either SVNWCClient.doGetFileContents(SVNURL, ...) or
SVNRepository.getFile(...) methods. To get file content into byte[] use
ByteArrayOutputStream in both methods.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Jose Noheda wrote:
> Hi all,
>
> I've looked at the API but I can't seem to find how to do a "svn cat"
> operation with SVNKit. That's my preferred way to download text files
> but I also need to obtain binary files and store them in a byte[]. I
> expected to use doExport but it requires a directory so it's a dead end
> for me as well. What's the correct way to load a variable with the
> contents of a file stored in a remote repository using SVNKit then?
>
> Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


 « Return to Thread: Downloading files from SVN