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?