Current Position:Home > How to compare the content of 2 binary file???

How to compare the content of 2 binary file???

Update:11-30Source: network consolidation
Advertisement
Plz show me the way.
Best regards
Hoa

The Best Answer

Advertisement
- Create two input streams
- Read a byte from both
  - If they're the same, continue
  - If they're not, return false
- If there are no more bytes available in one of the two streams, return whether they're both completely read
Kind regards,
  Levi
  • How to compare the content of 2 binary file??? Update:11-30

    Plz show me the way. Best regards Hoa- Create two input streams - Read a byte from both   - If they're the same, continue   - If they're not, return false - If there are no more bytes available in one of the two streams, return whether they're both c

  • Compare service-types.db.pacnew, binary file Update:11-30

    After today's update I have /usr/lib/avahi/service-types.db.pacnew. I use 'Meld' to usually, compare .pacnew with the original file. However I am unable to do so because 'Meld' says, "Could not read file... appears to be a binary file". I don't

  • Binary file content check fails! Update:11-30

    Hello, I am finding it hard to capture the content of a binary file. Here is my code:   if(!(null == myInstance.getBin_File().toString())                            && !(myInstance.getBin_File().toString().equals(""))){       //    Do so

  • Advice on Binary File to RFC scenario Update:10-11

    I need to send contents of a binary file into an RFC which can accept unbound rows of 1024 bytes of data. I will also send filename to the RFC which I'll pull from ASMA. I have a simple data type set up with XSD type base64Binary and string field for

  • Upload and read binary files Update:11-30

    I have created ADF form with input file item for initiator human task ( to upload a binary file) In the second form, I want see link of the file uploaded and I want open the file in other window ( to see the content of the binary file) How can I do?

  • How can I convert the binary file content to XML message Update:10-11

    Dear friends, I poll the binary file from a ftp server but the payload only includes the binary content, no XML structure in the payload, I hope to convert the binary content to a element node within the XML structure, how can I do that? via content

  • How to compare the contents of two XML documents Update:10-11

    Hi all, I was trying to compare the contents of two xml documents, they are both validate for the same XML Schema. i was using the xmlunit to do this. but some how it doesn't work like what i have expected. for example: 1.xml : <test><item>2&l

  • How to send the entire binary file as Content in mail adapter Update:10-11

    Hi, I have the below scenario: A binary file is there on the XI server and this is more than 1 lines. This file needs to be sent across to certain email addresses via the XI interface. I have made the design and config and now get the the mail but so

  • How to load binary content of a .class file? Update:10-11

    Hello everyone, I want to load the binary content of a .class file in a dynamic approach. In more detail, I want it to work in the following approach. When given the name of a class, I can retrieve the binary content of the .class file. I have writte

  • Binary file compare Update:10-11

    I'm sorry. I didn't want to have to post here, but I've been banging my head on this all week. Hopefully somebody here can shed some light on this for me. I'm trying to write an application that compares a series of binary files in a user-defined ord