Convert hex to binary before inserting

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>