I have a multipart file, it will be an image or video, which needs to be chunked for POST request. How can I chunk the file into byte array segments?
edit: I’m using Twitter API to upload image, according to their docs, media must be chunked
I have a multipart file, it will be an image or video, which needs to be chunked for POST request. How can I chunk the file into byte array segments?
edit: I’m using Twitter API to upload image, according to their docs, media must be chunked
2
Answers
I've found a solution thanks to https://www.baeldung.com/2013/04/04/multipart-upload-on-s3-with-jclouds/
Well, you may need this: