Java SDK - Download OutOfMemoryError when downloading 500MB file
Hi I am using box-java-sdk-2.8.1.jar from my Java program. In this program using the com.box.sdk.BoxFile download api I download the file from box and process it in my application. The code below works fine with smaller files however when downloading 500 MB file I get java.lang.OutOfMemory error at line file.download(outputStream). Please advise.
public void downloadFile(BoxAPIConnection boxConn,String boxFileID, ByteArrayOutputStream outputStream) throws Exception {
BoxFile file = new BoxFile(boxConn, boxFileID);
file.download(outputStream);
}
-
Hi ,
Since this is an issue that you're seeing with the Java SDK specifically, If you're still experiencing the problem I'd recommend submitting an issue directly on the Java SDK repo. That will get the request in the hands of the SDK team who should be able to help.
- Jon
Please sign in to leave a comment.
Comments
1 comment