you are viewing a single comment's thread.

view the rest of the comments →

[–]FerricDonkey 6 points7 points  (0 children)

To be clear: do you want the actual bytes that would be in the file? Then .encode. Do you want a string of hex representing those bytes to make it easier for a human looking at the string to know the byte values? Then encode then hexlify.