but I'm having trouble writing the binary data to redis