Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Binary diff algorithm for commercial software

I'm working on application sending changed files to other computers. Currently a changed file is sent completely even if the change is minor. I'm looking for a library (C,C++,Java) that would allow me to create a binary diff and send only the delta and the matching patch to merge the data back.

I'm looking for something ideally under an Eclipse or Apache licence. LGPL would work too.

like image 765
stwissel Avatar asked Oct 12 '09 16:10

stwissel


2 Answers

  • Open VCDiff c++, ASL 2.0
  • Java xdelta Java, MIT
  • librsync c/c++. LGPL
like image 139
David Rabinowitz Avatar answered Oct 02 '22 22:10

David Rabinowitz


bsdiff and bspatch are not libraries but you could extract the C source code without too much effort and the license should also work for you.

like image 29
pi3 Avatar answered Oct 02 '22 23:10

pi3