Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: how to read in a binary file and convert it to ascii output

by chas (Priest)
on Nov 02, 2005 at 22:06 UTC ( #505132=note: print w/replies, xml ) Need Help??


in reply to how to read in a binary file and convert it to ascii output

Depends on what the binary file contains. If it is, for example, an image file then you're not likely to output it as text to display in a reasonable way. If it is an encoding of text in some binary format then some unencoding would be required, but without more details it's hard to say.
chas
  • Comment on Re: how to read in a binary file and convert it to ascii output

Replies are listed 'Best First'.
Re: how to read in a binary file and convert it to ascii output
by jonadab (Parson) on Nov 02, 2005 at 22:30 UTC
    If it is, for example, an image file then you're not likely to output it as text to display in a reasonable way

    Sure, just use aalib. HTH.HAND.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://505132]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2016-08-31 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (428 votes). Check out past polls.