- Joined
- Nov 19, 2010
- Messages
- 1
- Reaction score
- 0
Hey everyone,
I'm relatively new to Python and I'm trying to convert a binary file to ACSII. I've tried using different extensions of the binascii() module, but receive a TypeError that the argument can't be a file.
Am I using binascii incorrectly?
>> f = open( "binaryfile.dat" , "rb" )
>> binascii.b2a_uu( f )
TypeError: b2a_uu() arguement 1 must be a string or read-only buffer, not file
Thanks in advance for your help!
I'm relatively new to Python and I'm trying to convert a binary file to ACSII. I've tried using different extensions of the binascii() module, but receive a TypeError that the argument can't be a file.
Am I using binascii incorrectly?
>> f = open( "binaryfile.dat" , "rb" )
>> binascii.b2a_uu( f )
TypeError: b2a_uu() arguement 1 must be a string or read-only buffer, not file
Thanks in advance for your help!