Looking for async media upload example for large videos in Java



Hi. I’m trying to upload a video (45Mb) and I’m aware that for anything above 15Mb we need to do it asynchronously. My team and I tried following the example (in Python) on the developer site but we still can’t get it to work. We are wondering if anyone can recommend a good Java example. Thanks


Are you saying that you were unable to use the Python sample to upload your media file, or that you were unable to convert the logic to a Java version?

There’s a patch for Twitter4J here that adds chunked media upload capability but I don’t think it has been merged into the main branch yet.


We were unable to convert the logic to Java. Thanks a lot. We’ll check it out