method-1-binary-file.md
method-2-lua.md
Create the file with the actual bytes, not the '\xnn\ representation. For example, in Python:
f = open('filename', 'w')
f.write('\x01\x02\x03')
f.close()
Load the file with redis-cli -x set keyname < filename
Create a script with the data already in it:
redis.call('SET', 'keyname', '\01\02\03')
Run the script: `redis-cli --eval script.lua