[Image-SIG] Converting a binary file to ascii
ashishbitsgoa at gmail.com
Thu Sep 4 06:32:27 CEST 2008
> Please define more precisely what you mean with "equivalent ascii
> string". Strictly speaking, b2a_uu produces an equivalent string in the
> sense that running a2b_uu gives you the original string back, but this
> is obviously not what you want. In other words, there is 1:1 mapping
> between arbitrary binary data and their "UU" representation.
> If you want to get the "P3" format: Use something like
> intvals = [ord(i) for i in d]
Thanks all of you. Your suggestions solved my problem.
More information about the Image-SIG