<?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 RIFF header is removed in uploaded audio file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/RIFF-header-is-removed-in-uploaded-audio-file/m-p/213132#M10821</link>
    <description>&lt;P&gt;&amp;nbsp;I upload .wav file to dropbox with the following code in Android app:&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US");
mClient = new DbxClientV2(config, ACCESS_TOKEN);

InputStream in = new FileInputStream(filePath);
FileMetadata metadata = mClient.files().uploadBuilder("/Folder/" + FILE_NAME).withMode(WriteMode.OVERWRITE)
.uploadAndFinish(in);
Log.d(TAG, "Upload complete " + metadata.getRev());&lt;/PRE&gt;&lt;P&gt;And when I compare the files (origianl and uploaded) I can see that RIFF header is missing: &lt;A href="https://www.screencast.com/t/6e3TwwypR" target="_blank"&gt;https://www.screencast.com/t/6e3TwwypR&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://www.screencast.com/t/6e3TwwypR" border="0" alt="" width="1580" height="63" /&gt;And as a result file without header is not reccognized and not played, i.e. corrupted.&lt;BR /&gt;&lt;BR /&gt;Why does the header cut out?&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:24:27 GMT</pubDate>
    <dc:creator>anray</dc:creator>
    <dc:date>2019-05-29T09:24:27Z</dc:date>
    <item>
      <title>RIFF header is removed in uploaded audio file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/RIFF-header-is-removed-in-uploaded-audio-file/m-p/213132#M10821</link>
      <description>&lt;P&gt;&amp;nbsp;I upload .wav file to dropbox with the following code in Android app:&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US");
mClient = new DbxClientV2(config, ACCESS_TOKEN);

InputStream in = new FileInputStream(filePath);
FileMetadata metadata = mClient.files().uploadBuilder("/Folder/" + FILE_NAME).withMode(WriteMode.OVERWRITE)
.uploadAndFinish(in);
Log.d(TAG, "Upload complete " + metadata.getRev());&lt;/PRE&gt;&lt;P&gt;And when I compare the files (origianl and uploaded) I can see that RIFF header is missing: &lt;A href="https://www.screencast.com/t/6e3TwwypR" target="_blank"&gt;https://www.screencast.com/t/6e3TwwypR&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://www.screencast.com/t/6e3TwwypR" border="0" alt="" width="1580" height="63" /&gt;And as a result file without header is not reccognized and not played, i.e. corrupted.&lt;BR /&gt;&lt;BR /&gt;Why does the header cut out?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/RIFF-header-is-removed-in-uploaded-audio-file/m-p/213132#M10821</guid>
      <dc:creator>anray</dc:creator>
      <dc:date>2019-05-29T09:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: RIFF header is removed in uploaded audio file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/RIFF-header-is-removed-in-uploaded-audio-file/m-p/213250#M10836</link>
      <description>The Java SDK just uploads whatever raw data is supplied, in this case via the InputStream supplied to the uploadAndFinish method. In your code, that's the "in" variable. Can you try reading that itself and checking whether or not it has the expected data?</description>
      <pubDate>Sat, 25 Mar 2017 14:11:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/RIFF-header-is-removed-in-uploaded-audio-file/m-p/213250#M10836</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-25T14:11:43Z</dc:date>
    </item>
  </channel>
</rss>

