what is wrong with this binary file transfer (corrupting docx files)?
I've been trying to resolve this issue for over a week and could really do with some help. We are using a httprequest to post files to an api. Most files come out ok, but docx files end up corrupted. After much research I'm pretty sure that I'm doing something wrong in the binary post that is adding extra data / bytes to the file. Streams are being closed and I think I've got the boundries and headers right.... Are there any obvious mistakes in the code below? Or would anybody be able to point me in the right direction for a fix. Why is extra data being added to this file? Are http headers the