Hello,
I have a JWT authenticated Java app. I can access all the folders info and their contents as my app is a co-owner of the root folder. However, when i try to download the files i get an access_denied_insufficient_permissions - Access denied - insufficient permission error.
I tried to re-authorize the app, but it didn`t help.
com.box.sdk.BoxAPIResponseException: The API returned an error code [403 | dte3alfvcmibfwld] access_denied_insufficient_permissions - Access denied - insufficient permission
at com.box.sdk.BoxAPIResponse.(BoxAPIResponse.java:90)
at com.box.sdk.BoxJSONResponse.(BoxJSONResponse.java:32)my download function is :
public static byte[] downloadFile(BoxFile file) {
try (ByteArrayOutputStream outstream = new ByteArrayOutputStream()){
file.download(outstream);
byte[] bytes = outstream.toByteArray();
return bytes;
} catch (IOException e) {
System.err.println("Couldn`t download file." + e.toString());
}
return null;
}Please advise.
