Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to read binary file in java and how convert into ASCII

Reply
Thread Tools

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

 
 
padarthi.kavitha@gmail.com
Guest
Posts: n/a
 
      06-09-2008
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
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      06-09-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Convert raw binary file to ascii r2 Python 7 07-27-2009 09:09 PM
[FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127) Alextophi Perl Misc 8 12-30-2005 10:43 AM
convert ascii escapes into binary form Hans-Peter Jansen Python 3 07-20-2005 08:24 PM
Question about reading a big binary file and write it into several text (ascii) files Albert Tu Python 2 01-25-2005 03:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57