Forum Discussion

GabrielSMF's avatar
GabrielSMF
New member | Level 2
6 years ago

OutOfMemoryError uploading large file from API V2 - Java

Hi all,

I'm trying to upload a large file (24gb) from Java using the Droopbox API V2, but I have a Out Of Memory Error.

I'm using the next line to do the upload:

cli.files().uploadBuilder(file_path_dropbox).uploadAndFinish(in);

Where:

file_path_dropbox = The path to Dropbox

in = the InputStream generated from FileInputStream(pathLocalFile)

I had read that I can use the uploadSessionStart() to do large uploads, but I never used it previously and I don't find some example of this.

How can I fix it? 

 

Regards

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 22 hours ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!