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

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 completely read
Kind regards,
  Levi

Similar Messages

  • How to compare the contents of two different tables

    hello. can somebody give me an idean on how to compare the contents of two different tables in mysql?
    example, i have a table named Main List and a table named New List.
    The contents of the New List should be compared to the contents of the
    Main List, to check if they are equal. I don't have any idea how to manipulate
    this data. Hoping for your help. Thanks.

    it is better to comapre it using java.. try get the resultset first and store that in collections then comapre the two collections

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

  • How to get the content in embed swf file in Swf Loader on run time

    How to get the content in embed swf file in Swf Loader on run time
    [Bindable]
    [Embed(source="assets/index.swf")]
       private var SWFSRC:Class;
    <mx:SWFLoader id="_swfloader" source="{SWFSRC}" />

    Hi Flex harUI,
    Throw the error.
    Access of undefined property content

  • How to read the content of ms-word file use pure java???

    how to read the content of ms-word file use pure java???

    hi,
    check this: http://jakarta.apache.org/poi/

  • How to compare the contents of two XML documents

    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</item><item>1</item></test>
    2.xml: <test><item>3</item><item>2</item><item>1</item></test>
    the result from XMLUnit is this two xmls are different, but it compares <item>2</item> with <item>3</item>, which i cannot find out where the real diiffs are.
    does anybody know how i can do this correct?
    best regards,
    tina

    I faced a similar problem in one of my projects and hence wrote my own comparator. Most comparators like ExamXML etc show XML as different if the nodes under a parent node occur in different seqeunce or a set of repeated nodes occur in different sequence. The comparator that I wrote gives you the flexibility to configure how to identify a node from a set of repeated nodes and is able to compare them successfully if they occur in any order. You can view the sample output at http://geocities.com/dheerendra_itbhu/TipsFromDheeru.html
    and contact me in case you need the source code.

  • Help on how to read the content of an XML file from the payload

    I have a receiver channel / mail adapter, that sends e-mails with a XML attachment.
    I’m trying to write a Bean, that should make it possible to rename the attached XML file dynamically.
    In the Bean I want to read the content of the attached XML file, it could be the “order number”.
    The filename should then be “Order number”.XML.
    <u><i>Can anyone help me with how to read the content of the XML file from the payload.</i></u>
    <i><b>Frank</b></i>

    hi,
    check this: http://jakarta.apache.org/poi/

  • How to read the content of this excel file in LV

    Hi could you please let me know how can I read the content of this excel file using the Read From Speardsheet function. It contains text and numbers
    Thanks
    The excel file is attached
    Attachments:
    Datalogging.zip ‏307 KB

    Check attached VI.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    ReadFromExcel.vi ‏27 KB

  • How to store the contents of a text file directly in to a clob field

    Hi All,
    Could anyone help me to store the contents of a text file (*.txt,*.xml etc)directly in to a clob field.
    Thanks in advance
    Jayaram.

    One way is to use sqlloader. Three files are used. A control file, an xml data file, and a file with the path of the xml data file. Here's the control file. It reads load.file, which is the file with the path of the xml data file. It names the path ext_path, and inserts the xml into field xml_field.
    CONTENTS OF CONTROL FILE:
    load DATA
    INFILE 'load.file'
    APPEND
    INTO TABLE xml_table
    ( ext_path FILLER CHAR(13),
    "XML_FIELD" LOBFILE(ext_fname) TERMINATED BY EOF
    CONTENTS OF FILE LOAD.FILE:
    /tmp/load.dat
    The xml is in the file /tmp/load.dat.
    null

  • URGENT: How to read the content of a PDF-file in Java?

    Hello
    What I need are some classes which can read a pdf and translate it in normal Text, so that I can write the content of the pdf in my database.
    Where can I find those classes? Or how else could I get there?

    www.lowagie.com/itext
    www.etymon.com/pj
    www.retep.org.uk/pdf
    www.pdflib.comwww.pdfzone.com
    www.planetpdf.com
    www.purepdf.com
    www.adobe.com
    www.pdfstore.com
    www.adobe.com/proindex/acrobat/formsresources.html
    www.partners.adobe.com/asn/developer/acrosdk/forms.html
    www.rrsys.com
    www.javafoundry.com/javapdf
    www.novagraphix.com/internet_publishing_with_acrobat/forms/forms_tutorial.html
    www.binarything.com

  • How to read the contents of a text file and populate the data in a table ?

    Hello All,
      Can anyone advise on how to acheieve the above ? I am trying to read in a text file (CSV) and have the contents populated to the respective UI elements in a table. Any help is greatly appreciated.
    from
    Kwok Wei

    Hi,
    Let us consider you have list of names(Seperated by delimeter) in a text file and you want to display in  a table.
    1. Create Context Node "Names" and context attribute "Name"
    2. Create Table and bind to the above context.
    3.Write the following code in the "Init method.
    try{
    FileReader f =new FileReader("");
    BufferedReader r=new BufferedReader(f);
    String names=r.readLine();
    Vector Names=new Vector();
    // Use Tokenizer and store all the names i a vector//
    for(int i=0;i<Names.size();i++){
    IPrivate<<VieName>>.INameElement ele=wdContext.createNameElement();
    ele.set<<Name>>( Names.get(i).toString());
    wdContext.NodeName().addElement(ele);
    Regards, Anilkumar
    Message was edited by: Anilkumar Vippagunta

  • How to modify the contents of a configuration file using j2me

    Hi,
    I'm developing a Application in j2me wherein i need to overwrite the existing contents of the configuration file(settings.cfg) with the value's that i have entered thru the front end. I was able to open and read the contents of the configuration file as follow's
    InputStream is = getClass().getResourceAsStream("/settings.cfg");
    Now, i need to remove the existing and updte it with the new content, how do i do it.. Kindly please help me out..
    Thanks

    Didn't you hear me the first time?
    http://forum.java.sun.com/thread.jspa?threadID=701360&messageID=4068435#4068435

  • How to modify the contents of a text file stored along with a midlet

    Hi,
    I have been developing a application in j2me wherein i need to first read the contents of the text file stored along with the midlet and later erase the existing content and update it with some text.
    I was able to read the file in the following manner
    InputStream is = getClass().getResourceAsStream("myfile.txt");
    Now i need to erase the contents and then update it the new content, how do i do it. Kinldy please help me out. It is very urgent.
    Thanks

    Didn't you hear me the first time?
    http://forum.java.sun.com/thread.jspa?threadID=701360&messageID=4068435#4068435

  • How to refresh the content of an external file

    Hi guys.
    I need to use an external file, no matter the extension(txt .xls .xml .mdb .csv) in the oracle BI rpd.
    I Use this file like a center table in my star schema and this file need to refresh frequently.
    How i can see, dynamically, the changes in the file without restart the services?I've tried by Answer to see all the record in the file, but if i change the file content and after, by answer, try to see the content.... it's the same as first!
    I can do something to overcome this problem? or i have to use external table??
    Thanks in advance.
    Best reguards

    It seems to me that you are trying to reinvent the wheel here. Having the BI Server load a 100,000 rows file is nto a good idea. The BI Server is not an ETL tool. While I could see why you may want to refresh the file frequently a better process would be to load it using standard ETL tools, create indexes etc and the move it to current table for OBIEE to see. You can use the OBIEE's Event Polling to clear the cache. Another simpler option if you are using an Oracle database is to use external tables. External tables allow you to define a table in an Oracle database that it's source is a text file. Google it and you will plenty of samples.

  • How to rearrange the contents of multiple PST files

    Hi,
    I have been trying to find a way of moving items within multiple PST files based specific criteria, but as of yet I haven't and was hoping that someone might be able to suggest whether or not it was possible using Powershell, or a third party tool.
    The scenario I have is that I've exported numerous user archives to PST file based purely on items that have attachments, unfortunately there are a large number of items that consider the email signatures to be attachments and I need to find a way of moving
    these items into a new folder within the PSTs.
    I know it's possible to do it individually via Outlook but that isn't practical in this situation. Please can anyone point me in the right direction?
    Thanks

    In order to read the content of the Redo Log files, you should use Logminer Utility
    Please refer to the documentation for more information:
    [Using LogMiner to Analyze Redo Log Files|http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm#SUTIL019]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

Maybe you are looking for

  • Multiple images in Pages

    I am trying to copy and past two doc images that were converted from PDF's. I copy and past the first image then the second image, I save/save as and close then when I close the image file the clip board gets cleared out. I reopen my Pages doc and th

  • Shopping cart attachment

    Hello, We are in to SRM 4.0 extended classic scenario. Need to attach a document to shopping cart which eventually required to available with SRM PO for vendor to view. Could you please let me know how to make this functionality available in SRM 4.0

  • How to assign content of XML to a string in bls

    Hi Experts.. Can someone tell , how to take the content of the XML file thats created in the BLS into a string. Regards Sreekanth

  • Can't get shuffle to work.

    How do I get my entire music collection to play in shuffle mode. I have shuffle on and it's not working. What am I doing wrong? Running iTunes 10.1 Thanks!

  • MW Applies Patch Runs adadmin only on Admin/Concureent Manager Tier

    Hi, I'm using MW 2.19 to upgrade from 11.5.10.2 to 12.1 and I've noticed that when running patches or adadmin the MW utility will only apply the patch to my Admin Tier but not the Forms/Web Tier. Is this expected behaviour? I can't see anything in th