Splitting binary files into chunks for upload

tl;dr: need to split binary files into <64MB chunks

I need to publish a report using an API. If file size is larger than 64MB I need to do a multipart upload. The catch is that I need to do it in a following sequence:

  • make a POST request with the first 64 MB chunk
  • this returns an ID
  • for the rest of the chunks I need to make a PUT request with the above ID in the header

So looks like I can't use httr:POST multipart method because of this dependency.

Is there a way I can simply use another command/package to split the binary file into <64MB chunks?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.