How to print a file in binary mode

Lucas Luwian at gmail.com
Sun Oct 22 14:16:25 CEST 2006


I need print a file in binary mode .

f = f.open('python.jpg','rb')
bytes = f.read()
f.close()

print(bytes)

I can't get any binary code.

how to do it?

Thank you very much!




More information about the Python-list mailing list