copy doc with binary