title: Java REST API for Large file uploads
body: <p>I'm developing a REST API using Jersey and I need to add large file uploading via REST API. I tried with small files and its working. However, the API will be used to upload large files which will have size of 2GB - 5GB, since it will be used to upload videos. </p>
  
  <p>I have checked on the stack overflow and other forums to find similar questions and its been suggest to use  streaming to upload large files. I'm not sure how to write the REST API to accept such large files without timeout. I want to use both REST API and also normal file upload (via html file upload) to accept large files. I want to know how I can break files into small chunks and upload to the REST API and store the files in the server.</p>
  
  <p>Are there any libraries in Javascript and Java to make this task easy?</p>