Function used by the FileDownload to write bytes to a file.
The buffer to write
The current part index, starting at 0
Function used by the FileDownload to write bytes to a file.