I would like to write a program which compares two byte[] blob and returns the difference and a parch object so i can apply the patch on the original blob and get the other.

Is there any library out there which supports this?

I want to do the following:

public void myFunc(byte[] b1, byte[] b2)
    Patch myPatch = diff(b1,b2);
    byte[] b3 = myPatch.run(b1);
    b3==b2;  //should be true

I have been looking for a simple solution with no luck. can anybody help me?

  • 1
    deleted my comment as I was mislead. Re-read the meta of this website and this does indeed fall inside the website content guidelines – John Demetriou Nov 6 '14 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.