Download specific file version with Android SDK
Im trying to download a specific version of a file. For java SDK it may be done as follows:
BoxFile file = new BoxFile(api, "id");
List versions = file.getVersions();
BoxFileVersion firstVersion = versions.get(0);
FileOutputStream stream = new FileOutputStream(firstVersion.getName());
firstVersion.download(stream);
stream.close();
With Android SDK I'm doing the following:
fileApi.getDownloadRequest(outputStream, id).send()
I didn't find a way to download a specific version.
-
Hi ,
Since you have an issue filed on this within the Android SDK , let's centralize the conversation there and we'll see what the core SDK team can provide directly on the ticket.
- Jon
Please sign in to leave a comment.
Comments
1 comment