The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
Re: Converting Between Binary and text
[Originally posted by dave]

> Hello Dave,
>
> I have been reading Data Munging and one of the things I would like to do
> is convert a binary file to text, don't know whether there is actually
> a way of converting binary data to text.
>
> Could you help please.

Sure there's a way to convert binary data to text. It probably involves using
"unpack" as described in chapter 7 of the book. Look at the example of
extracting data from a PNG file.

As to the exact way to solve your particular problem. It's impossible to give
precise advice without knowing the format of your binary data.

Dave...
import-bot (20211) [Avatar] Offline
#2
[Originally posted by aodukoya]

Hello Dave,

I have been reading Data Munging and one of the things I would like to do
is convert a binary file to text, don't know whether there is actually
a way of converting binary data to text.

Could you help please.

Thanks