To get some bytes from file on Dropbox API V1 (Range Request or a partial content request) I use endpoint
String rangeRequestEndpoint = "https://api-content.dropbox.com/1/files/dropbox";
with the code below:
String downloadUrl = rangeRequestEndpoint + Uri.encode(metadata.getPathLower());
URL url = new URL(downloadUrl);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Authorization", "Bearer " + accessToken);
con.setRequestProperty("Range", "bytes=" + position + "-" + (position + length - 1));
int responseCode = con.getResponseCode();
InputStream is = con.getInputStream();
Which endpoint should I use for this purpose in Dropbox API V2? It seems
https://content.dropboxapi.com/2/files/download
does not support Range Request.
To get some bytes from file on Dropbox API V1 (Range Request or a partial content request) I use endpoint
with the code below:
Which endpoint should I use for this purpose in Dropbox API V2? It seems
does not support Range Request.