write asset with binary mode