encoding of the buffer file should be binary