How to download files in chunks using google drive api in java?

Viewed 848

I am able to download files using google drive api as a single file but I want to download files in chunks of size let's say 5 MB for large files. This is the code for direct downloading.

session.service.files().get(id).executeMediaAndDownloadTo(asOutputStream());
1 Answers
Related