<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OutOfMemoryError uploading large file from API V2 - Java in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OutOfMemoryError-uploading-large-file-from-API-V2-Java/m-p/382172#M21295</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm trying to upload a large file (24gb) from Java using the Droopbox API V2, but I have a&amp;nbsp;Out Of Memory Error.&lt;/P&gt;
&lt;P&gt;I'm using the next line to do the upload:&lt;/P&gt;
&lt;P&gt;cli.files().uploadBuilder(file_path_dropbox).uploadAndFinish(in);&lt;/P&gt;
&lt;P&gt;Where:&lt;/P&gt;
&lt;P&gt;file_path_dropbox = The path to Dropbox&lt;/P&gt;
&lt;P&gt;in = the&amp;nbsp;InputStream generated from FileInputStream(pathLocalFile)&lt;/P&gt;
&lt;P&gt;I had read that I can use the&amp;nbsp;uploadSessionStart() to do large uploads,&amp;nbsp;but I never used it previously and&amp;nbsp;I don't find some example of&amp;nbsp;this.&lt;/P&gt;
&lt;P&gt;How can I fix it?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 18:48:32 GMT</pubDate>
    <dc:creator>GabrielSMF</dc:creator>
    <dc:date>2019-12-04T18:48:32Z</dc:date>
    <item>
      <title>OutOfMemoryError uploading large file from API V2 - Java</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OutOfMemoryError-uploading-large-file-from-API-V2-Java/m-p/382172#M21295</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm trying to upload a large file (24gb) from Java using the Droopbox API V2, but I have a&amp;nbsp;Out Of Memory Error.&lt;/P&gt;
&lt;P&gt;I'm using the next line to do the upload:&lt;/P&gt;
&lt;P&gt;cli.files().uploadBuilder(file_path_dropbox).uploadAndFinish(in);&lt;/P&gt;
&lt;P&gt;Where:&lt;/P&gt;
&lt;P&gt;file_path_dropbox = The path to Dropbox&lt;/P&gt;
&lt;P&gt;in = the&amp;nbsp;InputStream generated from FileInputStream(pathLocalFile)&lt;/P&gt;
&lt;P&gt;I had read that I can use the&amp;nbsp;uploadSessionStart() to do large uploads,&amp;nbsp;but I never used it previously and&amp;nbsp;I don't find some example of&amp;nbsp;this.&lt;/P&gt;
&lt;P&gt;How can I fix it?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 18:48:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OutOfMemoryError-uploading-large-file-from-API-V2-Java/m-p/382172#M21295</guid>
      <dc:creator>GabrielSMF</dc:creator>
      <dc:date>2019-12-04T18:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: OutOfMemoryError uploading large file from API V2 - Java</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OutOfMemoryError-uploading-large-file-from-API-V2-Java/m-p/382246#M21298</link>
      <description>&lt;P&gt;The upload method you're using only officially supports files up to 150 MB. If you need to upload larger files, such as the 24 GB file you mentioned, you'll need to use upload sessions, like you said. You can find an example of doing so in the official&amp;nbsp;Dropbox API v2 Java SDK here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java#L103" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java#L103&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can find the documentation for the upload session methods here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionStart--" target="_self"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionStart--&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionAppendV2-com.dropbox.core.v2.files.UploadSessionCursor-" target="_self"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionAppendV2-com.dropbox.core.v2.files.UploadSessionCursor-&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionFinish-com.dropbox.core.v2.files.UploadSessionCursor-com.dropbox.core.v2.files.CommitInfo-" target="_self"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#uploadSessionFinish-com.dropbox.core.v2.files.UploadSessionCursor-com.dropbox.core.v2.files.CommitInfo-&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:50:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/OutOfMemoryError-uploading-large-file-from-API-V2-Java/m-p/382246#M21298</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-04T16:50:51Z</dc:date>
    </item>
  </channel>
</rss>

