comment is useless. file is binary so the mode should be 'rb'