why are docx files corrupted by binary post, but .doc and .pdf are fine?
问题 I'm posting files to an API in binary format. .pdf and .doc files are fine - they arrive in the system as expected and open up without any problems. But for some reason, .docx files show up as corrupt. Why would that be? Sub PostTheFile(CVFile, fullFilePath, PostToURL) strBoundary = "---------------------------9849436581144108930470211272" strRequestStart = "--" & strBoundary & vbCrlf &_ "Content-Disposition: attachment; name=""file""; filename=""" & CVFile & """" & vbcrlf & vbcrlf