deprecated buildBytes for the ecl converter.