In python, how to convert a hex ASCII string to binary string?
Example:
01000001B8000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D
An easy way to do what you're trying to do... convert your string to a hex decimal then use the built in bin function to convert it to binary.
dec_string = int(your_string, 16) #cast as int bin_string = bin(dec_string) #convert to binary