how to read binary file in java and how convert into ASCII

Discussion in 'Java' started by padarthi.kavitha@gmail.com, Jun 9, 2008.

  1. Guest

    Hi all,
    I have a prolem here ..
    I need to read a binary file and then convert that into ascii after
    removing unprintable characters withing it ....
    I am able to read that file now but all i can see is binary format
    data "special characters/ junk data".
    Please guide me as how can i convert that file in ASCII after reading
    and then remove unprintable characters ....

    Thanks
     
    , Jun 9, 2008
    #1
    1. Advertising

  2. Roedy Green Guest

    On Mon, 9 Jun 2008 00:11:28 -0700 (PDT),
    wrote, quoted or indirectly quoted someone who said :

    >Hi all,
    >I have a prolem here ..
    >I need to read a binary file and then convert that into ascii after
    >removing unprintable characters withing it ....
    >I am able to read that file now but all i can see is binary format
    >data "special characters/ junk data".
    >Please guide me as how can i convert that file in ASCII after reading
    >and then remove unprintable characters ....


    see http://mindprod.com/applet/fileio.html
    to generate you the code.
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
     
    Roedy Green, Jun 9, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hans-Peter Jansen

    convert ascii escapes into binary form

    Hans-Peter Jansen, Jul 20, 2005, in forum: Python
    Replies:
    3
    Views:
    631
    Hans-Peter Jansen
    Jul 20, 2005
  2. r2
    Replies:
    7
    Views:
    4,976
    Jan Kaliszewski
    Jul 27, 2009
  3. Alextophi
    Replies:
    8
    Views:
    546
    Alan J. Flavell
    Dec 30, 2005
  4. bruce
    Replies:
    38
    Views:
    294
    Mark Lawrence
    Nov 1, 2013
  5. MRAB
    Replies:
    0
    Views:
    102
Loading...

Share This Page