How to create binary IMA and BIM files