Transform to binary format.