well, i dont know but maybee it is a good idea to try byte-per-byte copyying.
you opening the a new file and copy byte per byte from the file into the other file. this can be another solution
you opening the a new file and copy byte per byte from the file into the other file. this can be another solution