I read the first few bytes of a JPEG
f = open(filename, 'rb')
firstTwoBytes = f.read(2)
if firstTwoBytes != '\xff\xd8':
firstTwoBytes iny my debugger is: bytes: b'\xff\xd8' which is correct?
So my String comparison fails. How best to fix this?
Thanks