I\'m reading in a binary file (a jpg in this case), and need to find some values in that file. For those interested, the binary file is a jpg and I\'m attempting to pick out
In Python 3.x you can search a byte string by another byte string like this:
>>> byte_array = b'this is a byte array\r\n\r\nXYZ\x80\x04\x95 \x00\x00\x00\x00\x00' >>> byte_array.find('\r\n\r\n'.encode()) 20 >>>